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->elementtype = $obj->elementtype;
|
||||
|
||||
$this->fetch_optionals();
|
||||
$this->fetchResources();
|
||||
}
|
||||
$this->db->free($resql);
|
||||
|
||||
@ -171,7 +171,6 @@ class AgendaEvents extends DolibarrApi
|
||||
$obj = $db->fetch_object($result);
|
||||
$actioncomm_static = new ActionComm($db);
|
||||
if ($actioncomm_static->fetch($obj->rowid)) {
|
||||
$actioncomm_static->fetch_optionals();
|
||||
$obj_ret[] = $this->_cleanObjectDatas($actioncomm_static);
|
||||
}
|
||||
$i++;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user