fix Monitors filtering SQL
This commit is contained in:
parent
538658403c
commit
d3f6ab3d29
|
@ -145,11 +145,9 @@ $frameSql = "
|
||||||
|
|
||||||
if ( !empty($user['MonitorIds']) )
|
if ( !empty($user['MonitorIds']) )
|
||||||
{
|
{
|
||||||
$monFilterSql = ' AND M.Id IN ('.$user['MonitorIds'].')';
|
$eventsSql .= ' AND M.Id IN ('.$user['MonitorIds'].')';
|
||||||
|
$monitorsSql .= ' AND Id IN ('.$user['MonitorIds'].')';
|
||||||
$eventsSql .= $monFilterSql;
|
$frameSql .= ' AND E.MonitorId IN ('.$user['MonitorIds'].')';
|
||||||
$monitorsSQL .= $monFilterSql;
|
|
||||||
$frameSql .= $monFilterSql;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Parse input parameters -- note for future, validate/clean up better in case we don't get called from self.
|
// Parse input parameters -- note for future, validate/clean up better in case we don't get called from self.
|
||||||
|
|
Loading…
Reference in New Issue