mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 09:08:09 +01:00
add parameters (#33729)
This commit is contained in:
@@ -3039,7 +3039,9 @@ class Form
|
||||
}
|
||||
|
||||
// Add from (left join) from hooks
|
||||
$parameters = array();
|
||||
$parameters = array(
|
||||
'socid' => $socid,
|
||||
);
|
||||
$reshook = $hookmanager->executeHooks('selectProductsListFrom', $parameters); // Note that $action and $object may have been modified by hook
|
||||
$sql .= $hookmanager->resPrint;
|
||||
|
||||
@@ -3122,7 +3124,10 @@ class Form
|
||||
}
|
||||
|
||||
// Add where from hooks
|
||||
$parameters = array('filterkey' => &$filterkey);
|
||||
$parameters = array(
|
||||
'filterkey' => &$filterkey,
|
||||
'socid' => $socid,
|
||||
);
|
||||
$reshook = $hookmanager->executeHooks('selectProductsListWhere', $parameters); // Note that $action and $object may have been modified by hook
|
||||
$sql .= $hookmanager->resPrint;
|
||||
// Add criteria on ref/label
|
||||
|
||||
Reference in New Issue
Block a user