fix #1290. Actionize and alphabetize did not work for hidden projects

This commit is contained in:
Reinier Balt 2012-06-27 14:38:03 +02:00
parent 5a674b1126
commit 07a1bcab94

View file

@ -267,6 +267,7 @@ class ProjectsController < ApplicationController
@projects = current_user.projects.alphabetize(:state => @state) if @state
@contexts = current_user.contexts
init_not_done_counts(['project'])
init_project_hidden_todo_counts(['project']) if @state == 'hidden'
end
def actionize
@ -274,6 +275,7 @@ class ProjectsController < ApplicationController
@projects = current_user.projects.actionize(:state => @state) if @state
@contexts = current_user.contexts
init_not_done_counts(['project'])
init_project_hidden_todo_counts(['project']) if @state == 'hidden'
end
def done_todos