From bdddac50206efbae554bbc4b9926b0b3bf032762 Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Fri, 22 May 2009 14:41:42 +0200 Subject: [PATCH] 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 --- app/controllers/todos_controller.rb | 2 +- app/helpers/todos_helper.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/todos_controller.rb b/app/controllers/todos_controller.rb index 49391f3b..7802f1b6 100644 --- a/app/controllers/todos_controller.rb +++ b/app/controllers/todos_controller.rb @@ -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) diff --git a/app/helpers/todos_helper.rb b/app/helpers/todos_helper.rb index 0c3ae861..9b886679 100644 --- a/app/helpers/todos_helper.rb +++ b/app/helpers/todos_helper.rb @@ -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}"