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
This commit is contained in:
IgorA100
2024-03-25 18:57:59 +03:00
committed by GitHub
parent 357650d62c
commit 76a412fb32

View File

@@ -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',