Fix position

[MAILPOET-3072]
This commit is contained in:
Pavel Dohnal
2020-09-01 10:29:34 +02:00
committed by Veljko V
parent aa1852ae77
commit 2a37be1f88
2 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ export default function mapFormDataBeforeSaving(data) {
},
};
delete mappedData.settings.placement;
delete mappedData.settings.formPlacement;
delete mappedData.settings.successValidationColor;
delete mappedData.settings.errorValidationColor;
delete mappedData.settings.borderRadius;

View File

@ -153,8 +153,8 @@ class DisplayFormInWPContent {
((int)$_GET['mailpoet_error'] === $form->getId())
);
$templateData['delay'] = $formSettings[$displayType]['delay'] ?? 0;
$templateData['position'] = $formSettings[$displayType]['position'] ?? '';
$templateData['delay'] = $formSettings['form_placement'][$displayType]['delay'] ?? 0;
$templateData['position'] = $formSettings['form_placement'][$displayType]['position'] ?? '';
$templateData['backgroundColor'] = $formSettings['backgroundColor'] ?? '';
$templateData['fontFamily'] = $formSettings['font_family'] ?? '';