Merge pull request #19582 from atm-florianm/FIX_13.0_duplicate_hook_printFieldListWhere_in_replenish

FIX 13.0: printFieldListWhere called twice on same query
This commit is contained in:
Laurent Destailleur 2021-12-09 17:40:50 +01:00 committed by GitHub
commit 37fd2e05b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);