I'm getting an error when trying to edit an existing Mailchimp handler or add a new one:
FastCGI sent in stderr: "PHP message: Uncaught PHP Exception Symfony\Component\Debug\Exception\ContextErrorException: "Notice: Undefined index: list at /vagrant/drupal/web/modules/contrib/webform_mailchimp/src/Plugin/WebformHandler/WebformMailChimpHandler.php line 157"

I don't know why this happens now because it worked when these were added some months ago.

If I add a check to line 157 for the "list" value it seems to work:
if (isset($form['list']) && $form['list']['#default_value'])

But the interest groups is always empty: "Will appear the next time you edit this handler with the list selected."

Comments

mErilainen created an issue. See original summary.

merilainen’s picture

Issue summary: View changes
merilainen’s picture

Or should it be:
if (isset($form['mailchimp']['list']) && $form['mailchimp']['list']['#default_value'])

merilainen’s picture

Status: Active » Closed (works as designed)