mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 03:00:12 +01:00
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
This commit is contained in:
parent
cf7b90101a
commit
f9a2a6460d
2 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue