show correct number in badge

fixes #2058
This commit is contained in:
Carsten Otto 2017-03-18 20:19:48 +01:00 committed by Jyri-Petteri Paloposki
parent 67012821e6
commit 33f3135065

View file

@ -953,7 +953,8 @@ end
end end
from.project do from.project do
unless @todo.project_id == nil 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
end end
from.deferred do from.deferred do