turn on MOnitors dropdown in filters, an debug

This commit is contained in:
Isaac Connor 2017-11-22 11:40:07 -08:00
parent 92917809b8
commit 121e64a8c6
2 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ function dbQuery( $sql, $params=NULL ) {
} else {
$result = $dbConn->query( $sql );
}
if ( 0 ) {
if ( 1 ) {
if ( $params )
Warning("SQL: $sql" . implode(',',$params) . ' rows: '.$result->rowCount() );
else

View File

@ -229,7 +229,7 @@ for ( $i = 0; $i < count($terms); $i++ ) {
<td><?php echo htmlSelect( "filter[Query][terms][$i][op]", $opTypes, $term['op'] ); ?></td>
<td><?php echo htmlSelect( "filter[Query][terms][$i][val]", $weekdays, $term['val'] ); ?></td>
<?php
} elseif ( false && $term['attr'] == 'MonitorName' ) {
} elseif ( $term['attr'] == 'MonitorName' ) {
$monitors = array();
foreach ( dbFetchAll( 'select Id,Name from Monitors order by Sequence asc' ) as $monitor ) {
if ( visibleMonitor( $monitor['Id'] ) ) {