Fixed Contrat::fetch

This commit is contained in:
Marcos García de La Fuente 2014-12-28 17:47:13 +01:00
parent 41118a174a
commit 584be6a589

View File

@ -470,6 +470,18 @@ class Contrat extends CommonObject
$extralabels=$extrafields->fetch_name_optionals_label($this->table_element,true);
$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;
}