Bug 279, 280 - Closes window on set preset, saved run states fixed and fixed zones issue.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1874 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
0f43d26396
commit
efe1960a53
|
@ -906,6 +906,7 @@ if ( !empty($action) )
|
||||||
elseif ( $control == "preset_set" )
|
elseif ( $control == "preset_set" )
|
||||||
{
|
{
|
||||||
$ctrl_command .= " --preset ".$preset;
|
$ctrl_command .= " --preset ".$preset;
|
||||||
|
$view = 'none';
|
||||||
}
|
}
|
||||||
elseif ( $control == "move_map" )
|
elseif ( $control == "move_map" )
|
||||||
{
|
{
|
||||||
|
@ -979,7 +980,6 @@ if ( !empty($action) )
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
$sql = "insert into Controls set ".implode( ", ", $changes );
|
$sql = "insert into Controls set ".implode( ", ", $changes );
|
||||||
$result = mysql_query( $sql );
|
$result = mysql_query( $sql );
|
||||||
if ( !$result )
|
if ( !$result )
|
||||||
|
@ -1032,7 +1032,7 @@ if ( !empty($action) )
|
||||||
$refresh_parent = true;
|
$refresh_parent = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elseif ( $action == "zone" && !empty( $zid ) )
|
elseif ( $action == "zone" && isset( $zid ) )
|
||||||
{
|
{
|
||||||
$result = mysql_query( "select * from Monitors where Id = '$mid'" );
|
$result = mysql_query( "select * from Monitors where Id = '$mid'" );
|
||||||
if ( !$result )
|
if ( !$result )
|
||||||
|
@ -1608,7 +1608,7 @@ if ( !empty($action) )
|
||||||
{
|
{
|
||||||
if ( $run_state || $new_state )
|
if ( $run_state || $new_state )
|
||||||
{
|
{
|
||||||
$sql = "select Id,Function from Monitors order by Id";
|
$sql = "select Id,Function,Enabled from Monitors order by Id";
|
||||||
$result = mysql_query( $sql );
|
$result = mysql_query( $sql );
|
||||||
if ( !$result )
|
if ( !$result )
|
||||||
die( mysql_error() );
|
die( mysql_error() );
|
||||||
|
|
Loading…
Reference in New Issue