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.
Hello
There is a bug that happened in 2.2 and is still present in 2.3
When an admin tries to edit another user groups or interests, the information is not updated.
Kind of in a rush right now, just stopped by to let you know.
Cheers
Comments
Comment #1
jm.federico CreditAttribution: jm.federico commentedRight
Some more info, this is the deal:
If I can edit other user mailchimp settings, once I press "save settings" it actually updates my own settings and not the settings for the user I'm editing.
The problem is in mailchimp_auth_newsletter_form() that overrides the value set for $form['uid'] in mailchimp_subscribe_auth_form().
And the guilty guy is the array_merge() in line 234 in mailchimp.module
Cheers
Comment #2
jm.federico CreditAttribution: jm.federico commentedA solution would be to move
in mailchimp_subscribe_auth_form() to after the call to mailchimp_auth_newsletter_form()
Cheers
Comment #3
levelos CreditAttribution: levelos commentedThanks for catching that jm.federico. I took a slightly different approach, and updated the status messages to ensure the right accounts are being updated, http://drupal.org/cvs?commit=470428. I really need to work on some unit tests, regression testing is killing me!