From 1f6a99a27fc342c56af18f727ef5884a9e2ac2b3 Mon Sep 17 00:00:00 2001 From: lukemelia Date: Sun, 30 Jul 2006 20:09:04 +0000 Subject: [PATCH] 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 --- tracks/app/controllers/context_controller.rb | 1 + tracks/app/controllers/project_controller.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/tracks/app/controllers/context_controller.rb b/tracks/app/controllers/context_controller.rb index 9838d10d..2f7f4e03 100644 --- a/tracks/app/controllers/context_controller.rb +++ b/tracks/app/controllers/context_controller.rb @@ -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 diff --git a/tracks/app/controllers/project_controller.rb b/tracks/app/controllers/project_controller.rb index 69f958a8..cb0e4d3a 100644 --- a/tracks/app/controllers/project_controller.rb +++ b/tracks/app/controllers/project_controller.rb @@ -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