actionize hidden project fails
add test too
fix:
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 24aa5ea..c5366d9 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -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
fix:
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 24aa5ea..c5366d9 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -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
Leave a comment
(In tracks-tickets:89f96da623d80c9a952bd1561bc44c88e31b9d7c) fix #1290. Actionize and alphabetize did not work for hidden projects
Branch: master
Branch: master