From 02d896abe2e5681ad2a1bc8f9cffaf2b4f78203c Mon Sep 17 00:00:00 2001 From: r01k Date: Fri, 4 Feb 2022 22:19:15 -0500 Subject: [PATCH] Fixed in export.php "Class 'Filter' not found" and construction of SQL query with wrong syntax --- web/skins/classic/views/export.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/skins/classic/views/export.php b/web/skins/classic/views/export.php index 306a61083..ab444e551 100644 --- a/web/skins/classic/views/export.php +++ b/web/skins/classic/views/export.php @@ -86,7 +86,7 @@ $limitQuery = ''; if ( $user['MonitorIds'] ) { $user_monitor_ids = ' M.Id in ('.$user['MonitorIds'].')'; $eventsSql .= $user_monitor_ids; -} else { +} else if ( !isset($_REQUEST['filter']) ) { $eventsSql .= ' 1'; } @@ -98,7 +98,7 @@ if ( isset($_REQUEST['eid']) and $_REQUEST['eid'] ) { $eventsValues += $_REQUEST['eids']; } else if ( isset($_REQUEST['filter']) ) { parseSort(); - $filter = Filter::parse($_REQUEST['filter']); + $filter = ZM\Filter::parse($_REQUEST['filter']); $filterQuery = $filter->querystring(); if ( $filter->sql() ) {