From f80ef52f81685e777eb9eca81d429d4c84ac593b Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Thu, 28 Aug 2025 20:54:23 -0500 Subject: [PATCH] Workflow stage filter should only apply to cards in doing No other column has Workflows so they should be unaffected by the filter --- app/models/filter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/filter.rb b/app/models/filter.rb index 7b132b51a..d8611a024 100644 --- a/app/models/filter.rb +++ b/app/models/filter.rb @@ -28,7 +28,7 @@ class Filter < ApplicationRecord result = result.assigned_to(assignees.ids) if assignees.present? result = result.where(creator_id: creators.ids) if creators.present? result = result.where(collection: collections.ids) if collections.present? - result = result.in_stage(stages.ids) if stages.present? + result = result.in_stage(stages.ids) if stages.present? && engagement_status == "doing" result = result.tagged_with(tags.ids) if tags.present? result = result.where("cards.created_at": creation_window) if creation_window result = result.closed_at_window(closure_window) if closure_window