FIX: bulk importers wiping all email addresses without warning or errors

This commit is contained in:
Neil Lalonde 2018-03-08 23:36:39 -05:00
parent 34a0e79bec
commit 200c6673f1

View File

@ -341,9 +341,6 @@ class BulkImport::Base
user_email[:email] ||= random_email
user_email[:email].downcase!
# unique email
user_email[:email] = random_email until user_email[:email] =~ EmailValidator.email_regex && @emails.add?(user_email[:email])
user_email
end