If wizard dosesn't have translated field name, we have to translate it explicitly

This commit is contained in:
Nathan Gray 2013-05-13 16:05:30 +00:00
parent a004c7f4ea
commit f38dee97c5

View File

@ -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);
}