Fixed #595, an error when creating a new action, context and project at the same time, from the new action form. Thanks to SK for the bug report.

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@627 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
lukemelia 2007-11-04 05:18:13 +00:00
parent 06d94b1f1c
commit 11fb7c5b0e
2 changed files with 11 additions and 0 deletions

View file

@ -92,6 +92,8 @@ class TodosController < ApplicationController
end
format.js do
determine_down_count if @saved
@contexts = current_user.contexts.find(:all) if @new_context_created
@projects = current_user.projects.find(:all) if @new_project_created
render :action => 'create'
end
format.xml do

View file

@ -0,0 +1,9 @@
setup :fixtures => :all
login :as => 'admin'
open "/"
assert_context_count_incremented do
type "todo_description", "tttt"
type "todo_project_name", "pppp"
type "todo_context_name", "cccc"
click "css=#todo-form-new-action .submit_box button"
end