Changed $reshook check to be like the Dolibarr documentation.

This commit is contained in:
mgabriel 2023-03-21 09:22:35 +01:00
parent 7086b2dab9
commit 6f68380efe

View File

@ -3224,10 +3224,10 @@ class Form
$parameters = array('objp'=>$objp); $parameters = array('objp'=>$objp);
$reshook = $hookmanager->executeHooks('constructProductListOption', $parameters); // Note that $action and $object may have been modified by hook $reshook = $hookmanager->executeHooks('constructProductListOption', $parameters); // Note that $action and $object may have been modified by hook
if (!empty($reshook)) { if (empty($reshook)) {
$opt = $hookmanager->resPrint;
} else {
$opt .= $hookmanager->resPrint; $opt .= $hookmanager->resPrint;
} else {
$opt = $hookmanager->resPrint;
} }
$opt .= "</option>\n"; $opt .= "</option>\n";