FIX: printFieldListWhere called twice (at different locations) for the same SQL query, can result in syntax errors

This commit is contained in:
atm-florian 2021-12-08 16:03:21 +01:00
parent df11210243
commit 74ecb07925

View File

@ -505,11 +505,6 @@ if ($includeproductswithoutdesiredqty == 'on') {
$includeproductswithoutdesiredqtychecked = 'checked';
}
// Add where from hooks
$parameters = array();
$reshook = $hookmanager->executeHooks('printFieldListWhere', $parameters); // Note that $action and $object may have been modified by hook
$sql .= $hookmanager->resPrint;
$nbtotalofrecords = '';
if (empty($conf->global->MAIN_DISABLE_FULL_SCANLIST)) {
$result = $db->query($sql);