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)