mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-26 10:46:10 +01:00
fix #875. Make sure that in tag view when you mark the last deferred todo complete, the empty-message appears
This commit is contained in:
parent
f0f30fa8de
commit
1f2fc3787b
2 changed files with 9 additions and 1 deletions
|
|
@ -132,6 +132,7 @@ class TodosController < ApplicationController
|
|||
def toggle_check
|
||||
@source_view = params['_source_view'] || 'todo'
|
||||
@original_item_due = @todo.due
|
||||
@original_item_was_deferred = @todo.deferred?
|
||||
@saved = @todo.toggle_completion!
|
||||
|
||||
# check if this todo has a related recurring_todo. If so, create next todo
|
||||
|
|
@ -143,6 +144,7 @@ class TodosController < ApplicationController
|
|||
determine_remaining_in_context_count(@todo.context_id)
|
||||
determine_down_count
|
||||
determine_completed_count if @todo.completed?
|
||||
determine_deferred_tag_count(params['_tag_name']) if @source_view == 'tag'
|
||||
if source_view_is :calendar
|
||||
@original_item_due_id = get_due_id_for_calendar(@original_item_due)
|
||||
@old_due_empty = is_old_due_empty(@original_item_due_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue