mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +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 '';
|
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;
|
return $clause;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user