- Issue created by @tjhellmann
- πΊπΈUnited States xenophyle
Are you able to experiment with 2.2.4 to see if that fixes it?
- πΊπΈUnited States tjhellmann Indianapolis, IN
Thank you @xenophyle. Sorry, I should have mentioned that the issue persists after updating to 2.2.4. 2.2.2 was the last version where the email field was an option. With 2.2.4 the options look the same as the ones I posted with the screenshot with 2.2.3.
- πΊπΈUnited States xenophyle
Using these steps, I was not able to reproduce the problem; I was still seeing the full set of options for email address.
-Install Mailchimp 2.2.2 on a standard Drupal install of 10.3
-Enable Mailchimp and Mailchimp Audiences
-Authenticate with OAuth
-Create a subscription field on users
-Set email address merge field to the user email property
-Update to Mailchimp 2.2.4 and clear cachesIs there any additional information you might be able to supply? Are you using any patches?
- πΊπΈUnited States tjhellmann Indianapolis, IN
I was able to test more and the culprit was a feeds_item field on the user account.
Within the loop in the
getFieldmapOptions
function inmodules/mailchimp_lists/src/Plugin/Field/MailchimpListsSubscription.php
the feeds_item field returnsFALSE
from$options = $this->getOptionsForSubEntity($required, $field_definition, $target_definition, $target_type, $keypath, $label, $options);
which resets/empties the$options
array. That's why I was only seeing the values in the loop that came after the feeds_item field after updating to 2.2.3.I'm not sure of the best way but it seems that we should check if
getOptionsForSubEntity
returns a value that isn'tFALSE
. -
xenophyle β
committed 22f72fd4 on 2.x
Issue #3475808 by tjhellmann, xenophyle: After updating to 2.2.3, user...
-
xenophyle β
committed 22f72fd4 on 2.x
- πΊπΈUnited States xenophyle
Great tip! I just updated 2.x-dev with a change I think should fix this. Do you want to see if it helps?
- πΊπΈUnited States tjhellmann Indianapolis, IN
Yes, that fixed it. We have all the fields back as options now. Thank you!
-
xenophyle β
committed 22f72fd4 on 3.x
Issue #3475808 by tjhellmann, xenophyle: After updating to 2.2.3, user...
-
xenophyle β
committed 22f72fd4 on 3.x