From 8b749eaafce7e54181c7c0b7f44d723ca915d636 Mon Sep 17 00:00:00 2001 From: jfefe Date: Wed, 6 Mar 2013 01:34:32 +0100 Subject: [PATCH] Fix : extrafields are not saved on update (propale) --- htdocs/comm/propal/class/propal.class.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/htdocs/comm/propal/class/propal.class.php b/htdocs/comm/propal/class/propal.class.php index e10d1ecc0ea..66f6bb3874d 100644 --- a/htdocs/comm/propal/class/propal.class.php +++ b/htdocs/comm/propal/class/propal.class.php @@ -1173,8 +1173,14 @@ 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); - $this->fetch_optionals($this->id,$extralabels); - + //$this->fetch_optionals($this->id,$extralabels); + if (count($extralabels)>0) { + $this->array_options = array(); + } + foreach($extrafields->attribute_label as $key=>$label) + { + $this->array_options['options_'.$key]=$label; + } return 1; }