Only add traces for POST requests
This commit is contained in:
parent
92fe7a8506
commit
c439f957ae
1 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@ class TraceController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
if params[:trace]
|
if request.post?
|
||||||
logger.info(params[:trace][:gpx_file].class.name)
|
logger.info(params[:trace][:gpx_file].class.name)
|
||||||
|
|
||||||
if params[:trace][:gpx_file].respond_to?(:read)
|
if params[:trace][:gpx_file].respond_to?(:read)
|
||||||
|
@ -170,7 +170,7 @@ class TraceController < ApplicationController
|
||||||
else
|
else
|
||||||
@title = t "trace.edit.title", :name => @trace.name
|
@title = t "trace.edit.title", :name => @trace.name
|
||||||
|
|
||||||
if params[:trace]
|
if request.post?
|
||||||
@trace.description = params[:trace][:description]
|
@trace.description = params[:trace][:description]
|
||||||
@trace.tagstring = params[:trace][:tagstring]
|
@trace.tagstring = params[:trace][:tagstring]
|
||||||
@trace.visibility = params[:trace][:visibility]
|
@trace.visibility = params[:trace][:visibility]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue