From 885a5fdfc78c79c707df601b50dcedb84a489d31 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 1 Apr 2013 23:27:16 +0000 Subject: [PATCH] Also accept the translated version of the column name when checking an imported file --- importexport/inc/class.importexport_import_ui.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/importexport/inc/class.importexport_import_ui.inc.php b/importexport/inc/class.importexport_import_ui.inc.php index 29889d866b..983d101ac4 100644 --- a/importexport/inc/class.importexport_import_ui.inc.php +++ b/importexport/inc/class.importexport_import_ui.inc.php @@ -356,7 +356,7 @@ // Skipped column in definition continue; } - elseif($index < count($options['csv_fields']) && strtoupper($options['csv_fields'][$index]) != strtoupper($header)) + elseif($index < count($options['csv_fields']) && strtoupper($options['csv_fields'][$index]) != strtoupper($header) && strtoupper(lang($options['csv_fields'][$index])) != strtoupper($header)) { // Problem $message[] = lang("Column mismatch: %1 should be %2, not %3",