Update list.php

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

View File

@ -1340,10 +1340,9 @@ while ($i < min($num, $limit)) {
}
$parameters = array('staticdata' => $obj);
// Note that $action and $object may have been modified by hook
// do product_static fetch in hook if wanted or anything else
$reshook = $hookmanager->executeHooks('loadStaticObject', $parameters, $product_static, $action);
if ($reshook < 0) {
$product_static->fetch($obj->rowid);
} else {
if (empty($reshook)) {
$product_static->id = $obj->rowid;
$product_static->ref = $obj->ref;
$product_static->ref_fourn = empty($obj->ref_supplier) ? '' : $obj->ref_supplier; // deprecated