mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +02:00
Use unique values for combined AND group membership filters
This commit is contained in:
parent
0de923fc5f
commit
e61cb71c17
@ -560,7 +560,7 @@ abstract class IdoQuery extends DbQuery
|
|||||||
if (count($expr) === 1 && strpos($expr[0], '&') !== false) {
|
if (count($expr) === 1 && strpos($expr[0], '&') !== false) {
|
||||||
// Our current filter implementation does not specify & as a control character so the count of the
|
// Our current filter implementation does not specify & as a control character so the count of the
|
||||||
// expression array is always one in this case
|
// expression array is always one in this case
|
||||||
$expr = explode('&', $expr[0]);
|
$expr = array_unique(explode('&', $expr[0]));
|
||||||
$subQueryFilter->setExpression($expr);
|
$subQueryFilter->setExpression($expr);
|
||||||
$and = true;
|
$and = true;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user