From 1ccb8d7aef1d4da6c9b38443537dd10161c0d3f4 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 9 Apr 2021 19:46:57 -0400 Subject: [PATCH] Include Event Summaries when loading Monitors --- web/skins/classic/views/_monitor_filters.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/web/skins/classic/views/_monitor_filters.php b/web/skins/classic/views/_monitor_filters.php index 3c7165ebe..f80bd1f5b 100644 --- a/web/skins/classic/views/_monitor_filters.php +++ b/web/skins/classic/views/_monitor_filters.php @@ -171,10 +171,14 @@ $html .= ' $html .= ' '; - $sql = 'SELECT *,S.Status AS Status, S.CaptureFPS AS CaptureFPS, S.AnalysisFPS AS AnalysisFPS, S.CaptureBandwidth AS CaptureBandwidth - FROM Monitors AS M LEFT JOIN Monitor_Status AS S ON MonitorId=Id ' . + $sql = 'SELECT M.*, S.*, E.* + FROM Monitors AS M + LEFT JOIN Monitor_Status AS S ON S.MonitorId=M.Id + LEFT JOIN Event_Summaries AS E ON E.MonitorId=M.Id +' . ( count($conditions) ? ' WHERE ' . implode(' AND ', $conditions) : '' ).' ORDER BY Sequence ASC'; $monitors = dbFetchAll($sql, null, $values); + ZM\Debug(print_r($monitors, true)); $displayMonitors = array(); $monitors_dropdown = array();