Merge pull request #1622 from basecamp/open-filter
Fix: don't show closed cards by default when filtering by "created by"
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ class Card < ApplicationRecord
|
|||||||
case index
|
case index
|
||||||
when "stalled" then stalled
|
when "stalled" then stalled
|
||||||
when "postponing_soon" then postponing_soon
|
when "postponing_soon" then postponing_soon
|
||||||
when "closed" then closed.recently_closed_first
|
when "closed" then closed
|
||||||
when "not_now" then postponed.latest
|
when "not_now" then postponed.latest
|
||||||
when "golden" then golden
|
when "golden" then golden
|
||||||
when "draft" then drafted
|
when "draft" then drafted
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ class Filter < ApplicationRecord
|
|||||||
|
|
||||||
private
|
private
|
||||||
def include_closed_cards?
|
def include_closed_cards?
|
||||||
only_closed? || card_ids.present? || creator_ids.present?
|
only_closed? || card_ids.present?
|
||||||
end
|
end
|
||||||
|
|
||||||
def include_not_now_cards?
|
def include_not_now_cards?
|
||||||
|
|||||||
Reference in New Issue
Block a user