From 32a36a23e0ab37ff013327dc0dd964cf5ee2fc27 Mon Sep 17 00:00:00 2001 From: Richard Hallett Date: Tue, 14 Jan 2020 14:18:34 +0100 Subject: [PATCH] unique emails should be case insentive --- app/controllers/export_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/export_controller.rb b/app/controllers/export_controller.rb index 89f357bc2..b62e5120c 100644 --- a/app/controllers/export_controller.rb +++ b/app/controllers/export_controller.rb @@ -44,6 +44,7 @@ def contacts contacts = Hash.new add_contact = Proc.new { |contacts, email, id, firstname, lastname, type| + email.downcase if email unless contacts.has_key?(email) contacts[email] = {