From 76a412fb3291935011045fa90ac797b4471d7828 Mon Sep 17 00:00:00 2001 From: IgorA100 Date: Mon, 25 Mar 2024 18:57:59 +0300 Subject: [PATCH] Fix: Add monitors to the filter only if the filter limit is set My previous PR #3895 did not analyze the Group, Capturing, Analysing, etc. filters, but only took into account the Monitor filter --- web/skins/classic/views/console.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/skins/classic/views/console.php b/web/skins/classic/views/console.php index a239fadcb..cc4fa2429 100644 --- a/web/skins/classic/views/console.php +++ b/web/skins/classic/views/console.php @@ -255,7 +255,7 @@ ob_start(); $filter = addFilterTerm( $eventCounts[$i]['filter'], count($eventCounts[$i]['filter']['Query']['terms']), - gettype ($_SESSION['MonitorId']) == "array" #Add monitors to the filter only if they are selected in select + count($displayMonitorIds) != $colAllAvailableMonitors #Add monitors to the filter only if the filter limit is set ? array( 'cnj'=>'and', 'attr'=>'Monitor',