Update list.php

This commit is contained in:
Frédéric FRANCE 2022-11-15 18:23:57 +01:00 committed by GitHub
parent d0f9aace1c
commit a48f48283c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1449,10 +1449,9 @@ while ($i < min($num, $limit)) {
$obj = $db->fetch_object($resql);
$parameters = array('staticdata' => $obj);
// Note that $action and $object may have been modified by hook
// do companystatic fetch in hook if wanted or anything else
$reshook = $hookmanager->executeHooks('loadStaticObject', $parameters, $companystatic, $action);
if ($reshook < 0) {
$companystatic->fetch($obj->rowid);
} else {
if (empty($reshook)) {
$companystatic->id = $obj->rowid;
$companystatic->name = $obj->name;
$companystatic->name_alias = $obj->name_alias;