mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-02 15:28:50 +01:00
fix #1121 and add tests for this
This commit is contained in:
parent
3711acb6ab
commit
b02bb3fdde
7 changed files with 70 additions and 13 deletions
|
|
@ -904,7 +904,7 @@ class TodosController < ApplicationController
|
|||
@target_context_count = current_user.projects.find(project_id).todos.active.count
|
||||
}
|
||||
from.calendar {
|
||||
@target_context_count = count_old_due_empty(@new_due_id)
|
||||
@target_context_count = @new_due_id.blank? ? 0 : count_old_due_empty(@new_due_id)
|
||||
}
|
||||
end
|
||||
@remaining_in_context = current_user.contexts.find(context_id).todos(true).active.not_hidden.count if !@remaining_in_context
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue