fix small corner case where empty message was not shown when deleting last deferred todo from a project page

This commit is contained in:
Reinier Balt 2011-05-01 15:07:41 +02:00
parent 1a9b84701b
commit efa12e6695
2 changed files with 3 additions and 1 deletions

View file

@ -417,6 +417,8 @@ class TodosController < ApplicationController
@context_id = @todo.context_id
@project_id = @todo.project_id
@todo_was_destroyed_from_deferred_state = @todo.deferred?
@todo_was_destroyed_from_pending_state = @todo.pending?
@todo_was_destroyed_from_deferred_or_pending_state = @todo_was_destroyed_from_deferred_state || @todo_was_destroyed_from_pending_state
# activate successors if they only depend on this todo
activated_successor_count = 0