Fix : extrafields are not saved on update (propale)

This commit is contained in:
jfefe 2013-03-06 01:34:32 +01:00
parent 61127e82f6
commit 8b749eaafc

View File

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