From aeb9a1fda662081f9921515ab42e70d641b34e19 Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Tue, 7 Apr 2009 19:57:19 +0200 Subject: [PATCH] fix #866 where some variables were not set in defer --- app/controllers/todos_controller.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/controllers/todos_controller.rb b/app/controllers/todos_controller.rb index ad7a3dd4..d25a6da3 100644 --- a/app/controllers/todos_controller.rb +++ b/app/controllers/todos_controller.rb @@ -441,6 +441,11 @@ class TodosController < ApplicationController determine_down_count determine_remaining_in_context_count(@todo.context_id) + if @source_view == 'project' + @remaining_undone_in_project = current_user.projects.find(@todo.project_id).not_done_todo_count + @original_item_project_id = @todo.project_id + end + respond_to do |format| format.html { redirect_to :back } format.js {render :action => 'update'}