From 67151611a072aff32adb3a98f13600ab2930f4b0 Mon Sep 17 00:00:00 2001 From: Antti Hukkanen Date: Thu, 7 Mar 2024 13:39:55 +0200 Subject: [PATCH] List only amendable ideas --- app/controllers/decidim/ideas/ideas_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/decidim/ideas/ideas_controller.rb b/app/controllers/decidim/ideas/ideas_controller.rb index dcc5884..665372a 100644 --- a/app/controllers/decidim/ideas/ideas_controller.rb +++ b/app/controllers/decidim/ideas/ideas_controller.rb @@ -206,7 +206,7 @@ def users_idea_limit_reached? end def search_collection - Idea.where(component: current_component).not_hidden.with_availability(params[:filter].try(:[], :with_availability)) + Idea.where(component: current_component).not_hidden.only_amendables.with_availability(params[:filter].try(:[], :with_availability)) end def default_filter_params