From 3230bff8241bde85cf12b4db5eb8a73662e53bc4 Mon Sep 17 00:00:00 2001 From: Pavel Dohnal Date: Thu, 19 Dec 2019 09:21:31 +0100 Subject: [PATCH] Rename global variable to match the old code [MAILPOET-2453] --- assets/js/src/form_editor/store/store.jsx | 2 +- views/form/editor.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/src/form_editor/store/store.jsx b/assets/js/src/form_editor/store/store.jsx index 9525588f47..2bbe956d84 100644 --- a/assets/js/src/form_editor/store/store.jsx +++ b/assets/js/src/form_editor/store/store.jsx @@ -17,7 +17,7 @@ export default () => { const dateSettingData = { dateTypes: window.mailpoet_date_types, dateFormats: window.mailpoet_date_formats, - months: window.mailpoet_date_months, + months: window.mailpoet_month_names, }; formData.settings.segments = formData.settings.segments ? formData.settings.segments : []; const defaultState = { diff --git a/views/form/editor.html b/views/form/editor.html index 90f9b97726..b32888158a 100644 --- a/views/form/editor.html +++ b/views/form/editor.html @@ -21,7 +21,7 @@ var mailpoet_custom_fields = <%= json_encode(custom_fields) %>; var mailpoet_date_types = <%= json_encode(date_types) %>; var mailpoet_date_formats = <%= json_encode(date_formats) %>; - var mailpoet_date_months = <%= json_encode(month_names) %>; + var mailpoet_month_names = <%= json_encode(month_names) %>; <% endautoescape %>