From 844298f7792c03349a59e706ea8e04d2c6b2b29a Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 10 Oct 2012 15:04:50 +0000 Subject: [PATCH] Ignore case when searching for lookup matches --- importexport/inc/class.importexport_import_csv.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/importexport/inc/class.importexport_import_csv.inc.php b/importexport/inc/class.importexport_import_csv.inc.php index 008874fee6..0fed7b03e8 100755 --- a/importexport/inc/class.importexport_import_csv.inc.php +++ b/importexport/inc/class.importexport_import_csv.inc.php @@ -284,7 +284,7 @@ class importexport_import_csv implements importexport_iface_import_record { //, if($fields) { foreach((array)$fields['select'] as $name) { if($record[$name] != null && is_array($selects) && $selects[$name]) { - $key = array_search($record[$name], $selects[$name]); + $key = array_search(strtolower($record[$name]), array_map('strtolower',$selects[$name])); if($key !== false) $record[$name] = $key; } }