mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-03-19 22:37:36 -04:00
Converted filter action to use table Id's instead of filterName's when editing existings and creating new filters.
This commit is contained in:
@@ -24,12 +24,12 @@ if ( !canEdit( 'Events' ) )
|
||||
return;
|
||||
}
|
||||
|
||||
$selectName = "filterName";
|
||||
$newSelectName = "new".ucfirst($selectName);
|
||||
foreach ( dbFetchAll( "select * from Filters order by Name" ) as $row )
|
||||
$selectName = "filterId";
|
||||
$newSelectName = "newFilterName";
|
||||
foreach ( dbFetchAll( "select * from Filters order by Id" ) as $row )
|
||||
{
|
||||
$filterNames[$row['Name']] = $row['Name'];
|
||||
if ( $_REQUEST['filterName'] == $row['Name'] )
|
||||
$filterNames[$row['Id']] = $row['Name'];
|
||||
if ( $_REQUEST['filterId'] == $row['Id'] )
|
||||
{
|
||||
$filterData = $row;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user