Update list.php
This commit is contained in:
parent
d0f9aace1c
commit
a48f48283c
@ -1449,10 +1449,9 @@ while ($i < min($num, $limit)) {
|
|||||||
$obj = $db->fetch_object($resql);
|
$obj = $db->fetch_object($resql);
|
||||||
$parameters = array('staticdata' => $obj);
|
$parameters = array('staticdata' => $obj);
|
||||||
// Note that $action and $object may have been modified by hook
|
// 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);
|
$reshook = $hookmanager->executeHooks('loadStaticObject', $parameters, $companystatic, $action);
|
||||||
if ($reshook < 0) {
|
if (empty($reshook)) {
|
||||||
$companystatic->fetch($obj->rowid);
|
|
||||||
} else {
|
|
||||||
$companystatic->id = $obj->rowid;
|
$companystatic->id = $obj->rowid;
|
||||||
$companystatic->name = $obj->name;
|
$companystatic->name = $obj->name;
|
||||||
$companystatic->name_alias = $obj->name_alias;
|
$companystatic->name_alias = $obj->name_alias;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user