mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-09 09:04:21 +01:00
finish cucumber scenario for calendar
This commit is contained in:
parent
75cf51927e
commit
668ef4fb23
4 changed files with 14 additions and 6 deletions
|
|
@ -903,7 +903,7 @@ class TodosController < ApplicationController
|
|||
@target_context_count = current_user.projects.find(@todo.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