fix control types dropdown for a new monitor

pull/29/head
Isaac Connor 2013-05-09 14:11:20 -04:00
parent 0da26d4f75
commit 0a3ffb5e2e
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ var controlOptions = new Object();
<?php
global $controlTypes;
$controlTypes = array( ''=>$SLANG['None'] );
$sql = "select * from Controls where Type = '".$monitor['Type']."'";
$sql = "select * from Controls where Type = '".$newMonitor['Type']."'";
foreach( dbFetchAll( $sql ) as $row )
{
$controlTypes[$row['Id']] = $row['Name'];