From bc9c72fbcd1f9abdb98fdcf86840c79106ebf810 Mon Sep 17 00:00:00 2001 From: stan Date: Sun, 26 Nov 2006 12:12:25 +0000 Subject: [PATCH] Fixed filter saving. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2092 e3e1d417-86f3-4887-817a-d78f3d33393f --- web/zm_actions.php | 2 +- web/zm_html_view_filtersave.php | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/web/zm_actions.php b/web/zm_actions.php index 00540b61e..82f92b6e5 100644 --- a/web/zm_actions.php +++ b/web/zm_actions.php @@ -208,7 +208,7 @@ if ( !empty($action) ) $filter_parms[] = "sort_asc=$sort_asc"; $filter_parms[] = "limit=$limit"; $filter_query_string = join( '&', $filter_parms ); - simpleQuery( "replace into Filters set Name = '$filter_name', Query = '$filter_query_string', AutoArchive = '$auto_archive', AutoVideo = '$auto_video', AutoUpload = '$auto_upload', AutoEmail = '$auto_email', AutoMessage = '$auto_message', AutoExecute = '$auto_execute', AutoExecuteCmd = '".addslashes($auto_execute_cmd)."', AutoDelete = '$auto_delete'" ); + simpleQuery( "replace into Filters set Name = '$filter_name', Query = '$filter_query_string', AutoArchive = '$auto_archive', AutoVideo = '$auto_video', AutoUpload = '$auto_upload', AutoEmail = '$auto_email', AutoMessage = '$auto_message', AutoExecute = '$auto_execute', AutoExecuteCmd = '".addslashes($auto_execute_cmd)."', AutoDelete = '$auto_delete', Background = '$background'" ); $refresh_parent = true; } } diff --git a/web/zm_html_view_filtersave.php b/web/zm_html_view_filtersave.php index b088ae75f..e484dae8a 100644 --- a/web/zm_html_view_filtersave.php +++ b/web/zm_html_view_filtersave.php @@ -73,6 +73,14 @@ for ( $i = 1; $i <= $trms; $i++ ) + + + + + + + +