Skip to content

Commit

Permalink
Merge pull request Dolibarr#29055 from jyhere/patch-11
Browse files Browse the repository at this point in the history
FIX: missing executeHooks printFieldListFrom in product list page
  • Loading branch information
eldy authored Mar 25, 2024
2 parents f52e57f + ec5e20d commit 41e4d8b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions htdocs/product/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,11 @@
$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
Expand Down

0 comments on commit 41e4d8b

Please sign in to comment.