cocorrection on expensereport/class/expensereport_ik.class.php: table_element_line doest not exist on class, so removed the call of fetchLine
This commit is contained in:
parent
22ab13975f
commit
cea9a4c4cc
@ -120,24 +120,10 @@ class ExpenseReportIk extends CommonObject
|
|||||||
public function fetch($id, $ref = null)
|
public function fetch($id, $ref = null)
|
||||||
{
|
{
|
||||||
$result = $this->fetchCommon($id, $ref);
|
$result = $this->fetchCommon($id, $ref);
|
||||||
if ($result > 0 && !empty($this->table_element_line)) {
|
|
||||||
$this->fetchLines();
|
|
||||||
}
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Load object lines in memory from the database
|
|
||||||
*
|
|
||||||
* @return int <0 if KO, 0 if not found, >0 if OK
|
|
||||||
*/
|
|
||||||
public function fetchLines()
|
|
||||||
{
|
|
||||||
$this->lines = array();
|
|
||||||
|
|
||||||
$result = $this->fetchLinesCommon();
|
|
||||||
return $result;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user