From 6849f713b579df735b02d9e73da7ed3e0cf6f2d1 Mon Sep 17 00:00:00 2001 From: Florian HENRY Date: Mon, 11 Aug 2014 13:09:35 +0200 Subject: [PATCH] Fix bug in output extrafields sell list --- htdocs/core/class/extrafields.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/core/class/extrafields.class.php b/htdocs/core/class/extrafields.class.php index 63c84e17ae6..67dcddb3fa2 100644 --- a/htdocs/core/class/extrafields.class.php +++ b/htdocs/core/class/extrafields.class.php @@ -971,15 +971,15 @@ class ExtraFields $value=''; // value was used, so now we reste it to use it to build final output $obj = $this->db->fetch_object($resql); - + // Several field into label (eq table:code|libelle:rowid) $fields_label = explode('|',$InfoFieldList[1]); - + if(is_array($fields_label)) { foreach ($fields_label as $field_toshow) { - $translabel=$langs->trans($obj->field_toshow); + $translabel=$langs->trans($obj->$field_toshow); if ($translabel!=$field_toshow) { $value.=dol_trunc($translabel,18).' '; }else {