Filter draft cards from public closed column (#2667)
The public closed column was showing draft cards because it queried `@board.cards.closed` without a `.published` filter. This adds the missing `.published` scope to match the pattern used elsewhere in the public controllers. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class Public::Boards::Columns::ClosedsController < Public::BaseController
|
||||
def show
|
||||
set_page_and_extract_portion_from @board.cards.closed.recently_closed_first
|
||||
set_page_and_extract_portion_from @board.cards.closed.published.recently_closed_first
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user