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