Merge pull request #3280 from gschlager/importers_02

Imported users shouldn't get an email immediately after the import
This commit is contained in:
Régis Hanol 2015-03-18 21:41:13 +01:00
commit efdcf305e2
1 changed files with 1 additions and 0 deletions

View File

@ -293,6 +293,7 @@ class ImportScripts::Base
opts[:trust_level] = TrustLevel[1] unless opts[:trust_level]
opts[:active] = opts.fetch(:active, true)
opts[:import_mode] = true
opts[:last_emailed_at] = opts.fetch(:last_emailed_at, Time.now)
u = User.new(opts)
u.custom_fields["import_id"] = import_id