From 6849f713b579df735b02d9e73da7ed3e0cf6f2d1 Mon Sep 17 00:00:00 2001 From: Florian HENRY Date: Mon, 11 Aug 2014 13:09:35 +0200 Subject: [PATCH 1/2] 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 63c84e17ae6ae..67dcddb3fa262 100644 --- a/htdocs/core/class/extrafields.class.php +++ b/htdocs/core/class/extrafields.class.php @@ -971,15 +971,15 @@ function showOutputField($key,$value,$moreparam='') $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 { From aabbc331a4eac871e7e1e05fbc4928cf3d20e4aa Mon Sep 17 00:00:00 2001 From: Florian HENRY Date: Mon, 11 Aug 2014 13:12:04 +0200 Subject: [PATCH 2/2] Fix output extrafield selllist --- htdocs/core/class/extrafields.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/extrafields.class.php b/htdocs/core/class/extrafields.class.php index 67dcddb3fa262..8304c626fb0f5 100644 --- a/htdocs/core/class/extrafields.class.php +++ b/htdocs/core/class/extrafields.class.php @@ -971,10 +971,10 @@ function showOutputField($key,$value,$moreparam='') $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)