fix Monitors filtering SQL

This commit is contained in:
Isaac Connor 2017-03-30 13:06:54 -04:00
parent 538658403c
commit d3f6ab3d29
1 changed files with 3 additions and 5 deletions

View File

@ -145,11 +145,9 @@ $frameSql = "
if ( !empty($user['MonitorIds']) )
{
$monFilterSql = ' AND M.Id IN ('.$user['MonitorIds'].')';
$eventsSql .= $monFilterSql;
$monitorsSQL .= $monFilterSql;
$frameSql .= $monFilterSql;
$eventsSql .= ' AND M.Id IN ('.$user['MonitorIds'].')';
$monitorsSql .= ' AND Id IN ('.$user['MonitorIds'].')';
$frameSql .= ' AND E.MonitorId IN ('.$user['MonitorIds'].')';
}
// Parse input parameters -- note for future, validate/clean up better in case we don't get called from self.