Problem/Motivation
When a new user subscribes to a mailchimp list during registration, their uid is set as 0.
Steps to reproduce
Add a mailchimp field to the user object.
Create a new user via registration form.
Observe that uid is 0.
Proposed resolution
Hook into the user postSave operation rather than the preSave operation so that the user id is know at the time of subscription.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | mailchimp-3172783-post-save.patch | 1.02 KB | grasmash |
Comments
Comment #2
grasmash commentedThis fixes it for me.
Comment #3
gcbComment #5
Pastenes commented