mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
Sort by 'show_from' in tickler
This commit is contained in:
parent
bf8b118ebf
commit
1ed137afa9
2 changed files with 10 additions and 1 deletions
|
@ -558,7 +558,7 @@ class TodosController < ApplicationController
|
|||
|
||||
includes = params[:format]=='xml' ? [:context, :project] : Todo::DEFAULT_INCLUDES
|
||||
|
||||
@not_done_todos = current_user.todos.deferred.includes(includes) + current_user.todos.pending.includes(includes)
|
||||
@not_done_todos = current_user.todos.deferred.includes(includes).reorder('show_from') + current_user.todos.pending.includes(includes)
|
||||
@todos_without_project = @not_done_todos.select{|t|t.project.nil?}
|
||||
@down_count = @count = @not_done_todos.size
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue