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.
Looking at the code, I think only one mailchimp list is saved when submitting the webform, whichever one comes last. I would like the ability to have multiple lists updated with the same form.
Comment | File | Size | Author |
---|---|---|---|
#6 | save_multiple_lists_on_submit-1185234.patch | 1.68 KB | mattcasey |
#5 | save_multiple_lists_on_submit-1185234.patch | 1.68 KB | mattcasey |
#3 | save_multiple_lists_on_submit-1185234.patch | 1.73 KB | mattcasey |
Comments
Comment #1
mattcasey CreditAttribution: mattcasey commentedTurned out to be pretty easy to fix, using an array instead of a string for $mailchimp_list. I'll try to submit a patch
Comment #2
jrockowitz CreditAttribution: jrockowitz commentedmattwad, I just ran into this issue could you please post your fix (ie patch or code). Thanks.
Comment #3
mattcasey CreditAttribution: mattcasey commentedHere ya go.
Comment #4
jrockowitz CreditAttribution: jrockowitz commentedThe patch works great, thanks.
There is a very minor indentation issue but the maintainer should be able to commit it.
Comment #5
mattcasey CreditAttribution: mattcasey commentedRerolled with correct indentation and also removed a redundant comment.
Comment #6
mattcasey CreditAttribution: mattcasey commentedGah! I missed one tab space.
Comment #7
blackdog CreditAttribution: blackdog commentedGood catch, committed to 6.x & 7.x. Someone please test the 7.x code.