NEW add hook selectProductsListWhere in select_produits_list function
This commit is contained in:
parent
c6338e0de0
commit
b0fe8994e4
@ -2607,6 +2607,10 @@ class Form
|
||||
} elseif (empty($conf->service->enabled)) { // when service module is disabled, show products only
|
||||
$sql .= " AND p.fk_product_type = 0";
|
||||
}
|
||||
// Add where from hooks
|
||||
$parameters = array();
|
||||
$reshook = $hookmanager->executeHooks('selectProductsListWhere', $parameters); // Note that $action and $object may have been modified by hook
|
||||
$sql .= $hookmanager->resPrint;
|
||||
// Add criteria on ref/label
|
||||
if ($filterkey != '') {
|
||||
$sql .= ' AND (';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user