FIX move fetch_optionnal into $ac_static->fetch()

This commit is contained in:
Julien Gainza 2021-09-13 16:35:13 +02:00
parent 9d89e48d15
commit 65c4a21898
2 changed files with 1 additions and 1 deletions

View File

@ -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);

View File

@ -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++;