Skip to content

Commit

Permalink
show correct number in badge
Browse files Browse the repository at this point in the history
fixes #2058
  • Loading branch information
C-Otto authored and ZeiP committed Jul 19, 2020
1 parent 6701282 commit 33f3135
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/todos_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 33f3135

Please sign in to comment.