From f38dee97c5d37565c8ff8f6ace541fb6d2d94eca Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 13 May 2013 16:05:30 +0000 Subject: [PATCH] If wizard dosesn't have translated field name, we have to translate it explicitly --- importexport/inc/class.importexport_export_csv.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/importexport/inc/class.importexport_export_csv.inc.php b/importexport/inc/class.importexport_export_csv.inc.php index e11f2ad255..b0e598ad22 100644 --- a/importexport/inc/class.importexport_export_csv.inc.php +++ b/importexport/inc/class.importexport_export_csv.inc.php @@ -171,7 +171,10 @@ class importexport_export_csv implements importexport_iface_export_record $fields = $wizard->get_export_fields(); foreach($this->mapping as $field => &$label) { - if($fields[$field]) $label = $fields[$field]; + if($fields[$field]) + { + $label = $label != $fields[$field] ? $fields[$field] : lang($label); + } // Make sure no * if(substr($label,-1) == '*') $label = substr($label,0,-1); }