From f176d114f2f468e2f7f34113b74c8bf63333bf93 Mon Sep 17 00:00:00 2001 From: Vinoth Kannan Date: Fri, 13 Oct 2017 15:19:02 +0530 Subject: [PATCH] FIX: with_email method won't support hash param (#5236) --- lib/import_export/topic_importer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/import_export/topic_importer.rb b/lib/import_export/topic_importer.rb index c681d39c2f6..6b1d9f5d268 100644 --- a/lib/import_export/topic_importer.rb +++ b/lib/import_export/topic_importer.rb @@ -18,7 +18,7 @@ module ImportExport def import_users @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.custom_fields["import_id"] != u[:id] existing.custom_fields["import_id"] = u[:id]