Fix form html id to differ per display type

[MAILPOET-2811]
This commit is contained in:
Rostislav Wolny
2020-05-25 10:37:23 +02:00
committed by Veljko V
parent 0039dec079
commit 00f40b7ee4

View File

@ -132,7 +132,7 @@ class DisplayFormInWPContent {
'settings' => $form->getSettings(), 'settings' => $form->getSettings(),
]; ];
$formSettings = $form->getSettings(); $formSettings = $form->getSettings();
$htmlId = 'mp_form_below_' . $form->getId(); $htmlId = 'mp_form_' . $displayType . $form->getId();
$templateData = [ $templateData = [
'form_html_id' => $htmlId, 'form_html_id' => $htmlId,
'form_id' => $form->getId(), 'form_id' => $form->getId(),