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:
Reinier Balt 2009-05-22 14:41:42 +02:00
parent 87bf96f638
commit bdddac5020
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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}"