diff options
author | Andrew Dolgov <[email protected]> | 2009-01-18 11:04:54 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-01-18 11:04:54 +0100 |
commit | db34a63e2a79f07e4f8c6c386b225e3662d604fd (patch) | |
tree | 8c36b4e4fbbe0174e8d113dde26ac3b2361b6159 | |
parent | 6427a306ae66460e6bc0d236a96031dae3e7c4ec (diff) |
createFilter: properly create type 7 filters
-rw-r--r-- | modules/pref-filters.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/pref-filters.php b/modules/pref-filters.php index ca469d504..f2e3832e2 100644 --- a/modules/pref-filters.php +++ b/modules/pref-filters.php @@ -232,6 +232,7 @@ $feed_id = db_escape_string($_GET["feed_id"]); $action_id = db_escape_string($_GET["action_id"]); $action_param = db_escape_string($_GET["action_param"]); + $action_param_label = db_escape_string($_GET["action_param_label"]); $inverse = checkbox_to_sql_bool(db_escape_string($_GET["inverse"])); # for the time being, no other filters use params anyway... @@ -245,6 +246,13 @@ $feed_id = sprintf("'%s'", db_escape_string($feed_id)); } + /* When processing 'assign label' filters, action_param_label dropbox + * overrides action_param */ + + if ($action_id == 7) { + $action_param = $action_param_label; + } + $result = db_query($link, "INSERT INTO ttrss_filters (reg_exp,filter_type,owner_uid,feed_id, action_id, action_param, inverse, filter_param) |