Update html.form.class.php

This commit is contained in:
Laurent Destailleur 2021-02-10 14:14:28 +01:00 committed by GitHub
parent 17f77b8edb
commit 72bfa81082
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6350,7 +6350,7 @@ class Form
// Add where from hooks
$parameters = array();
$reshook = $hookmanager->executeHooks('selectForFormsListWhere', $parameters); // Note that $action and $object may have been modified by hook
if(!empty($hookmanager->resPrint)) $sql .= $hookmanager->resPrint;
if (!empty($hookmanager->resPrint)) $sql .= $hookmanager->resPrint;
else {
$sql .= " WHERE 1=1";
if (isset($objecttmp->ismultientitymanaged) && $objecttmp->ismultientitymanaged == 1) $sql .= " AND t.entity IN (".getEntity($objecttmp->table_element).")";