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.

CommentFileSizeAuthor
#2 mailchimp-3172783-post-save.patch1.02 KBgrasmash

Comments

grasmash created an issue. See original summary.

grasmash’s picture

Status: Active » Needs review
StatusFileSize
new1.02 KB

This fixes it for me.

gcb’s picture

Component: General » Lists Module
Assigned: Unassigned » Pastenes

  • grasmash authored 52187bd on issue-3172783
    Issue #3172783 by grasmash, Pastenes: User ID unknown when subscribing...
Pastenes’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.