FIX move fetch_optionnal into $ac_static->fetch()
This commit is contained in:
parent
9d89e48d15
commit
65c4a21898
@ -763,6 +763,7 @@ class ActionComm extends CommonObject
|
|||||||
$this->elementid = $obj->elementid;
|
$this->elementid = $obj->elementid;
|
||||||
$this->elementtype = $obj->elementtype;
|
$this->elementtype = $obj->elementtype;
|
||||||
|
|
||||||
|
$this->fetch_optionals();
|
||||||
$this->fetchResources();
|
$this->fetchResources();
|
||||||
}
|
}
|
||||||
$this->db->free($resql);
|
$this->db->free($resql);
|
||||||
|
|||||||
@ -171,7 +171,6 @@ class AgendaEvents extends DolibarrApi
|
|||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
$actioncomm_static = new ActionComm($db);
|
$actioncomm_static = new ActionComm($db);
|
||||||
if ($actioncomm_static->fetch($obj->rowid)) {
|
if ($actioncomm_static->fetch($obj->rowid)) {
|
||||||
$actioncomm_static->fetch_optionals();
|
|
||||||
$obj_ret[] = $this->_cleanObjectDatas($actioncomm_static);
|
$obj_ret[] = $this->_cleanObjectDatas($actioncomm_static);
|
||||||
}
|
}
|
||||||
$i++;
|
$i++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user