manual add fix of piglop to prevent todos from staying hidden forever

This commit is contained in:
Reinier Balt 2009-01-21 13:36:26 +01:00
parent 0674c59d54
commit 8ff7afb88c
3 changed files with 214 additions and 177 deletions

View file

@ -231,7 +231,9 @@ class TodosController < ApplicationController
@todo.activate!
end
@saved = @todo.update_attributes params["todo"]
@todo.attributes = params["todo"]
@saved = @todo.save
@context_changed = @original_item_context_id != @todo.context_id
@todo_was_activated_from_deferred_state = @original_item_was_deferred && @todo.active?