Merge branch 'master' of github.com:ZoneMinder/zoneminder

pull/3905/head
Isaac Connor 2024-03-25 09:53:33 -04:00
commit 66fa612d02
2 changed files with 13 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'].'">' : '')

View File

@ -112,4 +112,5 @@ var translate = {
"Exit Fullscreen": "<?php echo translate('Exit Fullscreen') ?>",
"Live": "<?php echo translate('Live') ?>",
"Edit": "<?php echo translate('Edit') ?>",
"All Events": "<?php echo translate('All Events') ?>",
};