Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am setting hidden groups for members in Mailchimp. I have a Mailchimp Subscription field on my Drupal user accounts. If the user edits his account, those hidden groups are removed in Mailchimp.
I've tried checking "Enable Interest Groups" but that does not make any difference. (It does make my visible Interest Groups available, but does not fix this issue.)
Is there a way to ensure the Mailchimp Subscription field does not remove groups that may not be available or visible on the user account page?
Comment | File | Size | Author |
---|---|---|---|
#9 | 2561459-9.patch | 929 bytes | samuel.mortenson |
|
Comments
Comment #2
dmsmidtI can confirm this is a problem in 3.6. This is serious since it corrupts your data at the mailchimp side.
Comment #3
dmsmidtHere is a patch that fixes it.
Comment #4
ruscoe CreditAttribution: ruscoe at ThinkShout commentedWe're going to be ending support for the 7.x-3.x branch due to the upcoming deprecation of the v2.0 MailChimp API. If you're still seeing this issue with the most recent release, please feel free to reopen.
Comment #5
dmsmidtThis is still an issue on the 7.x-4.x branch.
Comment #6
sjerdoUpdated the patch for version 7.x-4.x
Comment #7
sjerdoComment #8
heylookalive CreditAttribution: heylookalive commentedLooks good to me!
Comment #9
samuel.mortensonHere's a re-rolled patch for 7.x-5.x, if anyone in the community could review and mark the issue as RTBC (if the code looks good and works), that would help to get this in. Thanks!
Comment #10
amandahart CreditAttribution: amandahart commentedI applied this patch on a site that is using custom module code to update the Mailchimp member values for a hidden interest group. Before applying this patch, I could not get data from the hidden interest group. The value of $exclude_hidden was not being used to decide whether or not the interest group would be included. This patch fixes that and removes the hard-coded "hidden" value. I can now see my hidden interest group when calling mailchimp_get_list() and specifying FALSE for $exclude_hidden_interest_groups.
I'm not certain if this fixes the issue the original poster reported, but it does use the $exclude_hidden_interest_groups/$exclude_hidden value correctly to decide what is included.
Comment #11
vasikei would say this is a duplicate of https://www.drupal.org/project/mailchimp/issues/3122931
And the "solution suggested" there seems "more correct this one ...