Browse Source

update_rss_feed: add log message if article is filtered out
combine filters: fix crash on missing global function

Andrew Dolgov 11 months ago
parent
commit
f3737c0b24
2 changed files with 2 additions and 1 deletions
  1. 1 0
      classes/rssutils.php
  2. 1 1
      js/PrefFilterTree.js

+ 1 - 0
classes/rssutils.php

@@ -923,6 +923,7 @@ class RSSUtils {
 					$entry_ref_id = $ref_id;
 
 					if (RSSUtils::find_article_filter($article_filters, "filter")) {
+						Debug::log("article is filtered out, nothing to do.");
 						$pdo->commit();
 						continue;
 					}

+ 1 - 1
js/PrefFilterTree.js

@@ -101,7 +101,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functio
 			});
 		},
 		joinSelectedFilters: function() {
-			const rows = getSelectedFilters();
+			const rows = this.getSelectedFilters();
 
 			if (rows.length == 0) {
 				alert(__("No filters selected."));