mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
FIX selectForFormsListWhere should getEntity from object element
This commit is contained in:
parent
5a42116ee5
commit
42d6aaf22d
|
|
@ -8512,7 +8512,7 @@ class Form
|
|||
$sql .= " WHERE 1=1";
|
||||
if (isset($objecttmp->ismultientitymanaged)) {
|
||||
if ($objecttmp->ismultientitymanaged == 1) {
|
||||
$sql .= " AND t.entity IN (" . getEntity($objecttmp->table_element) . ")";
|
||||
$sql .= " AND t.entity IN (" . getEntity($objecttmp->element) . ")";
|
||||
}
|
||||
if (!is_numeric($objecttmp->ismultientitymanaged)) {
|
||||
$sql .= " AND parenttable.entity = t." . $tmparray[0];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user