From 3cefb62621208a3e87369915a9ee83ae10bf7d17 Mon Sep 17 00:00:00 2001 From: jfefe Date: Tue, 5 Mar 2013 22:22:10 +0100 Subject: [PATCH] Fix : incorrect function used to retrieve extrafields for propal --- htdocs/comm/propal/class/propal.class.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/htdocs/comm/propal/class/propal.class.php b/htdocs/comm/propal/class/propal.class.php index 7722900a1dc..5e8fac582a6 100644 --- a/htdocs/comm/propal/class/propal.class.php +++ b/htdocs/comm/propal/class/propal.class.php @@ -1155,13 +1155,7 @@ class Propal extends CommonObject require_once(DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php'); $extrafields=new ExtraFields($this->db); $extralabels=$extrafields->fetch_name_optionals_label('propal',true); - if (count($extralabels)>0) { - $this->array_options = array(); - } - foreach($extrafields->attribute_label as $key=>$label) - { - $this->array_options['options_'.$key]=$label; - } + $this->fetch_optionals($this->id,$extralabels); return 1; }