Remove implicit order when filtering by closed cards
We set the order in the dedicated column controllers and we don't want this in place when using composable filters. Also, this raises an error with the MySQL move when combined with assignees. Because we inject a .distinct there, that messes up with the query select, resulting in having to add a redundant select to the closed sorting scope, so that the closure.created_at is not lost.
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ class Card < ApplicationRecord
|
||||
case index
|
||||
when "stalled" then stalled
|
||||
when "postponing_soon" then postponing_soon
|
||||
when "closed" then closed.recently_closed_first
|
||||
when "closed" then closed
|
||||
when "not_now" then postponed.latest
|
||||
when "golden" then golden
|
||||
when "draft" then drafted
|
||||
|
||||
Reference in New Issue
Block a user