Skip to content
Snippets Groups Projects
Commit 9be504ef authored by Stephan Zeidler's avatar Stephan Zeidler Committed by amyvs
Browse files

Issue #2776765 by szeidler: Check for undefined mergevar list-id, when no list available

parent 118c9589
No related branches found
Tags 8.x-1.7
No related merge requests found
......@@ -111,6 +111,7 @@ class MailchimpSignupPageForm extends FormBase {
}
}
$mergevars_wrapper_id = isset($list->id) ? $list->id : '';
$form['mergevars'] = array(
'#prefix' => '<div id="mailchimp-newsletter-' . $list->id . '-mergefields" class="mailchimp-newsletter-mergefields">',
'#suffix' => '</div>',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment