#300: Fixed bug that broke validation on create

This commit is contained in:
Henrik Bohre 2009-07-22 20:01:53 +02:00 committed by Eric Allen
parent 50a47c5874
commit 0664761a8f

View file

@ -83,7 +83,7 @@ class TodosController < ApplicationController
unless @todo.uncompleted_predecessors.empty? || @todo.state == 'project_hidden'
@todo.state = 'pending'
end
@todo.save!
@todo.save
end
respond_to do |format|