Subscription options on User Edit screen prevents making other changes to user information
| Project: | MailChimp |
| Version: | 6.x-2.0-beta7 |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
If I check the "Show Subscription Options on User Edit Screen" so that the MailChimp subscription form appears at /user/%/edit, any OTHER changes users make on the page -- password, username, time zone, etc. -- are NOT saved when the form is submitted.
When the form is present, and the "Save" button clicked, no confirmation message appears at the top of the page after saving, and none of the changes made are reflected when the page is reloaded.
If I REMOVE the subscription form by unchecking "Show Subscription Options on User Edit Screen", then the problem goes away, users are able to save changes to their account properly, and a confirmation message is present when the page is reloaded.
It appears as though this is an issue that was introduced in a recent MailChimp module upgrade -- perhaps in the upgrade to 6.x-2.0-beta4 or 6.x-2.0-beta5 -- that persists in 6.x-2.0-beta7.

#1
Same Problem!
#2
Fixed. Oh, the mysteries of hook_user. Starting in beta 7, I was adding the necessary form fields in hook_user so I could catch the profile category and account object easier. For some reason, adding a submit handler at this step prevented the updates. Doing it in hook_form_alter is fine. Fixed in dev and soon to be released beta8.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.