Fetch optionnal into fetch of propal
This commit is contained in:
parent
e76f997ded
commit
53ca1546d0
@ -1098,6 +1098,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);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user