Changed $reshook check to be like the Dolibarr documentation.
This commit is contained in:
parent
7086b2dab9
commit
6f68380efe
@ -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";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user