FIX: printFieldListWhere called twice (at different locations) for the same SQL query, can result in syntax errors
This commit is contained in:
parent
df11210243
commit
74ecb07925
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user