mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
update endpoints and add new fields integration pandoraitsm pandora_enterprise#13004
This commit is contained in:
parent
8e0af02e54
commit
ac3f6720ed
@ -254,7 +254,15 @@ class RepositoryMySQL extends Repository
|
||||
return '';
|
||||
}
|
||||
|
||||
$clause = ' AND '.$field.' IN ('.implode(',', $filter->getMultipleSearch()['data']).')';
|
||||
$clause = ' AND ('.$field.' IN ('.implode(',', $filter->getMultipleSearch()['data']).')';
|
||||
|
||||
if(isset($filter->getMultipleSearch()['secondaryGroup']) === true
|
||||
&& $filter->getMultipleSearch()['secondaryGroup'] === true
|
||||
) {
|
||||
$clause .= ' OR tagent_secondary_group.id_group IN ('.implode(',', $filter->getMultipleSearch()['data']).')';
|
||||
}
|
||||
$clause .= ')';
|
||||
|
||||
return $clause;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user