diff --git a/web/skins/classic/views/filtersave.php b/web/skins/classic/views/filtersave.php index 981fc7a36..84fb108b3 100644 --- a/web/skins/classic/views/filtersave.php +++ b/web/skins/classic/views/filtersave.php @@ -24,12 +24,12 @@ if ( !canEdit( 'Events' ) ) return; } -$selectName = "filterId"; +$selectName = "Id"; $newSelectName = "newFilterName"; -foreach ( dbFetchAll( "select * from Filters order by Id" ) as $row ) +foreach ( dbFetchAll( "select * from Filters order by Name" ) as $row ) { $filterNames[$row['Id']] = $row['Name']; - if ( $_REQUEST['filterId'] == $row['Id'] ) + if ( $_REQUEST['Id'] == $row['Id'] ) { $filterData = $row; }