Fetch optionnal into fetch of propal

This commit is contained in:
fhenry 2013-04-26 16:58:04 +02:00
parent e76f997ded
commit 53ca1546d0

View File

@ -1099,6 +1099,16 @@ class Propal extends CommonObject
$this->brouillon = 1; $this->brouillon = 1;
} }
// Retreive all extrafield for invoice
// fetch optionals attributes and labels
if(!class_exists('Extrafields'))
require_once(DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php');
$extrafields=new ExtraFields($this->db);
$extralabels=$extrafields->fetch_name_optionals_label($this->table_element,true);
if (count($extralabels)>0) {
$this->fetch_optionals($this->id,$extralabels);
}
$this->db->free($resql); $this->db->free($resql);
$this->lines = array(); $this->lines = array();