Browse Source

quickAddFeed: fix legacy feed_id type being passed to newrule

Andrew Dolgov 3 months ago
parent
commit
267bcee32c
2 changed files with 3 additions and 2 deletions
  1. 2 2
      js/functions.js
  2. 1 0
      js/tt-rss.js

+ 2 - 2
js/functions.js

@@ -1083,7 +1083,7 @@ function quickAddFilter() {
 				var feed_id = activeFeedIsCat() ? 'CAT:' + parseInt(getActiveFeedId()) :
 					getActiveFeedId();
 
-				var rule = { reg_exp: selectedText, feed_id: feed_id, filter_type: 1 };
+				var rule = { reg_exp: selectedText, feed_id: [feed_id], filter_type: 1 };
 
 				addFilterRule(null, dojo.toJson(rule));
 
@@ -1107,7 +1107,7 @@ function quickAddFilter() {
 						var feed_id = activeFeedIsCat() ? 'CAT:' + parseInt(getActiveFeedId()) :
 							getActiveFeedId();
 
-						var rule = { reg_exp: title, feed_id: feed_id, filter_type: 1 };
+						var rule = { reg_exp: title, feed_id: [feed_id], filter_type: 1 };
 
 						addFilterRule(null, dojo.toJson(rule));
 					}

+ 1 - 0
js/tt-rss.js

@@ -228,6 +228,7 @@ function init() {
 			"dijit/form/Form",
 			"dijit/form/RadioButton",
 			"dijit/form/Select",
+        	"dijit/form/MultiSelect",
 			"dijit/form/SimpleTextarea",
 			"dijit/form/TextBox",
 			"dijit/form/ComboBox",