FIX: with_email method won't support hash param (#5236)

This commit is contained in:
Vinoth Kannan 2017-10-13 15:19:02 +05:30 committed by Régis Hanol
parent c53f41f4f2
commit f176d114f2
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ module ImportExport
def import_users def import_users
@export_data[:users].each do |u| @export_data[:users].each do |u|
existing = User.with_email(email: u[:email]).first existing = User.with_email(u[:email]).first
if existing if existing
if existing.custom_fields["import_id"] != u[:id] if existing.custom_fields["import_id"] != u[:id]
existing.custom_fields["import_id"] = u[:id] existing.custom_fields["import_id"] = u[:id]