Fix project and context creation rendering, which was failing because the hash for tracking the number of actions in a project or context had not been defined. Fixes #341.

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@299 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
lukemelia 2006-07-30 20:09:04 +00:00
parent d9e3c94a17
commit 1f6a99a27f
2 changed files with 2 additions and 0 deletions

View file

@ -40,6 +40,7 @@ class ContextController < ApplicationController
@context.attributes = params['context']
@context.name = deurlize(@context.name)
@saved = @context.save
@context_not_done_counts = { @context.id => 0 }
end
# Called by a form button

View file

@ -62,6 +62,7 @@ class ProjectController < ApplicationController
@project.attributes = params['project']
@project.name = deurlize(@project.name)
@saved = @project.save
@project_not_done_counts = { @project.id => 0 }
end
# Called by a form button