Merge pull request #29055 from jyhere/patch-11
FIX: missing executeHooks printFieldListFrom in product list page
This commit is contained in:
commit
41e4d8bf6b
1 changed files with 5 additions and 0 deletions
|
|
@ -499,6 +499,11 @@ if (getDolGlobalString('PRODUCT_USE_UNITS')) {
|
|||
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."c_units cu ON cu.rowid = p.fk_unit";
|
||||
}
|
||||
|
||||
// Add table from hooks
|
||||
$parameters = array();
|
||||
$reshook = $hookmanager->executeHooks('printFieldListFrom', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
||||
$sql .= $hookmanager->resPrint;
|
||||
|
||||
$sql .= ' WHERE p.entity IN ('.getEntity('product').')';
|
||||
if ($sall) {
|
||||
// Clean $fieldstosearchall
|
||||
|
|
|
|||
Loading…
Reference in a new issue