enable group by project for tickler

This commit is contained in:
Reinier Balt 2013-04-20 20:20:57 +02:00
parent 8b464112ad
commit caec4f214a
2 changed files with 7 additions and 1 deletions

View file

@ -590,10 +590,12 @@ class TodosController < ApplicationController
@page_title = t('todos.deferred_tasks_title')
@contexts_to_show = @contexts = current_user.contexts
@projects_to_show = @projects = current_user.projects
includes = params[:format]=='xml' ? [:context, :project] : Todo::DEFAULT_INCLUDES
@not_done_todos = current_user.todos.deferred.includes(includes) + current_user.todos.pending.includes(includes)
@todos_without_project = @not_done_todos.select{|t|t.project.nil?}
@down_count = @count = @not_done_todos.size
respond_to do |format|