update endpoints and add new fields integration pandoraitsm pandora_enterprise#13004

This commit is contained in:
daniel 2024-04-01 16:43:47 +02:00
parent 8e0af02e54
commit ac3f6720ed
1 changed files with 9 additions and 1 deletions

View File

@ -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;
}