From ec5e20d6335c2fadeb3568c100768c255d3a939a Mon Sep 17 00:00:00 2001 From: jyhere Date: Mon, 25 Mar 2024 15:39:02 +0100 Subject: [PATCH] FIX: missing executeHooks printFieldListFrom in product list page --- htdocs/product/list.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/htdocs/product/list.php b/htdocs/product/list.php index d7f5d7450ba..17eed6cc980 100644 --- a/htdocs/product/list.php +++ b/htdocs/product/list.php @@ -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