Fixed Contrat::fetch
This commit is contained in:
parent
41118a174a
commit
584be6a589
@ -470,6 +470,18 @@ class Contrat extends CommonObject
|
|||||||
$extralabels=$extrafields->fetch_name_optionals_label($this->table_element,true);
|
$extralabels=$extrafields->fetch_name_optionals_label($this->table_element,true);
|
||||||
$this->fetch_optionals($this->id,$extralabels);
|
$this->fetch_optionals($this->id,$extralabels);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Lines
|
||||||
|
*/
|
||||||
|
|
||||||
|
$this->lines = array();
|
||||||
|
|
||||||
|
$result=$this->fetch_lines();
|
||||||
|
if ($result < 0)
|
||||||
|
{
|
||||||
|
$this->error=$this->db->error();
|
||||||
|
return -3;
|
||||||
|
}
|
||||||
|
|
||||||
return $this->id;
|
return $this->id;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user