- π¨πSwitzerland Berdir Switzerland
+++ b/src/Plugin/WebformHandler/WebformMailChimpHandler.php @@ -125,7 +125,7 @@ class WebformMailChimpHandler extends WebformHandlerBase { '#empty_option' => $this->t('- Select an option -'), - '#default_value' => $this->configuration['list'], + '#default_value' => ($this->configuration['list'] ?: null), '#options' => $options,
The problem is that the default value for list in defaultConfiguration is set to an empty array instead of NULL, change that and it should work.
- Status changed to Needs review
about 1 year ago 8:12pm 17 May 2023 - π¨πSwitzerland Berdir Switzerland
Ok, I also understand now that this only happens when your mailchimp account has no list yet, which is quite unusual. And you can't use this module in that scenario, you need a list, the other option still needs to pick a valid list, just dynamically. Either way, the correct default value is NULL indeed.
-
Berdir β
committed 94d96bdb on 8.x-5.x
Issue #3313121 by Seppe Beelprez, Berdir, arti_parmar: Array to string...
-
Berdir β
committed 94d96bdb on 8.x-5.x
- Status changed to Fixed
about 1 year ago 8:13pm 17 May 2023 Automatically closed - issue fixed for 2 weeks with no activity.