From fadf12e98a5f612f4475ea7c49d0eec46dffc7de Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Wed, 14 Aug 2019 10:26:05 +0200 Subject: [PATCH] Show empty groups with a filter chain too --- .../library/Monitoring/Backend/Ido/Query/IdoQuery.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php index 7a39f48d1..51df5e7b7 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php @@ -633,6 +633,12 @@ abstract class IdoQuery extends DbQuery new Zend_Db_Expr($ours) )); + if (! $negate) { + $subQueryFilter = $subQueryFilter->orFilter( + new FilterExpression($ours, '', new Zend_Db_Expr('IS NULL')) + ); + } + $subQuery ->setFilter($subQueryFilter) ->clearGroupingRules()