mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-31 14:28:49 +01:00
fix #905 by applying the suggesting of Henrik Bohre. Thanks Henrik!
also fixed the non appearing empty message because the empty count was not recalculated for non-active todos
This commit is contained in:
parent
87bf96f638
commit
bdddac5020
2 changed files with 2 additions and 2 deletions
|
|
@ -147,7 +147,7 @@ class TodosController < ApplicationController
|
|||
if @saved
|
||||
determine_remaining_in_context_count(@todo.context_id)
|
||||
determine_down_count
|
||||
determine_completed_count if @todo.completed?
|
||||
determine_completed_count
|
||||
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)
|
||||
|
|
|
|||
|
|
@ -221,7 +221,7 @@ module TodosHelper
|
|||
|
||||
def item_container_id (todo)
|
||||
if source_view_is :project
|
||||
return "p#{todo.project_id}" if todo.active?
|
||||
return "p#{todo.project_id}items" if todo.active?
|
||||
return "tickler" if todo.deferred?
|
||||
end
|
||||
return "c#{todo.context_id}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue