From f9a2a6460d9e7c96e81d1e0ef43d0893db8f781d Mon Sep 17 00:00:00 2001 From: lukemelia Date: Thu, 3 Aug 2006 01:07:13 +0000 Subject: [PATCH] Apply Ryan Daigle's patch to fix editing contexts and projects. See #341. Does not resolve ajax loading issue mentioned in the ticket. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@302 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 6d3329f7..c3ead4de 100644 --- a/tracks/app/controllers/context_controller.rb +++ b/tracks/app/controllers/context_controller.rb @@ -109,6 +109,7 @@ class ContextController < ApplicationController # Edit the details of the context # def update + self.init check_user_set_context @context.attributes = params["context"] @context.name = deurlize(@context.name) diff --git a/tracks/app/controllers/project_controller.rb b/tracks/app/controllers/project_controller.rb index 2e1a9dd3..ac6c0404 100644 --- a/tracks/app/controllers/project_controller.rb +++ b/tracks/app/controllers/project_controller.rb @@ -129,6 +129,7 @@ class ProjectController < ApplicationController # Edit the details of the project # def update + self.init check_user_set_project @project.attributes = params["project"] @project.name = deurlize(@project.name)