A platform for community discussion. Free, open, simple.
FIX: if exclude_category_ids is specified pass it through
Samcaa669cf2955
diff --git a/app/controllers/list_controller.rb b/app/controllers/list_controller.rbindex 8339d8b2d3e..6deaf817e7d 100644--- a/app/controllers/list_controller.rb+++ b/app/controllers/list_controller.rb@@ -64,7 +64,7 @@ class ListController < ApplicationControllerif filter == :latestlist_opts[:no_definitions] = trueend- if [:latest, :categories].include?(filter)+ if [:latest, :categories].include?(filter) && list_opts[:exclude_category_ids].blank?list_opts[:exclude_category_ids] = get_excluded_category_ids(list_opts[:category])endend@@ -264,7 +264,7 @@ class ListController < ApplicationControllertop_options.merge!(options) if optionstop_options[:per_page] = SiteSetting.topics_per_period_in_top_page- if "top".freeze == current_homepage+ if "top".freeze == current_homepage && top_options[:exclude_category_ids].blank?top_options[:exclude_category_ids] = get_excluded_category_ids(top_options[:category])end