diff --git a/app/controllers/todos_controller.rb b/app/controllers/todos_controller.rb index 824371578..a50a93962 100644 --- a/app/controllers/todos_controller.rb +++ b/app/controllers/todos_controller.rb @@ -953,7 +953,8 @@ def determine_down_count end from.project do unless @todo.project_id == nil - @down_count = current_user.projects.find(@todo.project_id).todos.active_or_hidden.count + project = current_user.projects.find(@todo.project_id) + @down_count = project.todos.active_or_hidden.count + project.todos.deferred.count + project.todos.pending.count end end from.deferred do