Merge pull request #3895 from IgorA100/patch-37

Feat: Changed monitor filter (in header table) to go from console to …
pull/3899/head
Isaac Connor 2024-03-25 08:46:04 -04:00 committed by GitHub
commit 357650d62c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 10 deletions

View File

@ -252,16 +252,18 @@ ob_start();
<?php }
foreach ( array_keys($eventCounts) as $i ) {
$filter = addFilterTerm(
$eventCounts[$i]['filter'],
count($eventCounts[$i]['filter']['Query']['terms']),
array(
'cnj'=>'and',
'attr'=>'Monitor',
'op'=>'IN',
'val'=>implode(',', $displayMonitorIds)
)
);
$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
? array(
'cnj'=>'and',
'attr'=>'Monitor',
'op'=>'IN',
'val'=>implode(',', $displayMonitorIds)
)
: false
);
parseFilter($filter);
echo '<th class="colEvents"><a '
.(canView('Events') ? 'href="?view='.ZM_WEB_EVENTS_VIEW.'&amp;page=1'.$filter['querystring'].'">' : '')