While importing a large number of users using a smaller users/process value, I'm given a link to 'continue processing'. I've set a custom email message, with subject/body and CSS, but from the first time I continue processing, none of the users receive my custom email, but instead are given the standard 'new user' email from Drupal core. Further examination of the fieldset after processing shows it to have blanked; reset to default. All the other fields remain as set.

Thought I'd see if anyone else was having this issue. Might have some time free later to go hunt it down.

CommentFileSizeAuthor
#1 user_import.module_0.patch2.74 KBNall

Comments

Nall’s picture

Status: Active » Needs review
StatusFileSize
new2.74 KB

I found it. The function _user_import_settings_save is used throughout the import process; that function has many uses, one of which is taking import settings form values and putting them into an array. The problem is that this code *always* runs whenever the function is called, so when the import process routine calls it just before it ends, nonexistant values are assigned to the array and saved in the database, and hence my email information above disappears.

The fix I saw is to do this only when we're dealing with form fields - I've a patch here that works well in my tests for this.

forestmonster’s picture

Thanks Nall -- we ran into this problem too and as a result a bunch of imported users received an e-mail that didn't really explain too well what was going on or why they had a new account.

So I'd like this patch to make it into user_import.

robert castelo’s picture

Status: Needs review » Fixed

Fixed in 5.x-2.0-beta2.

Status: Fixed » Closed (fixed)

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

jason.fisher’s picture

I had this problem with 5.x and just saw this again with 6.x-3.x. http://drupal.org/node/1343640