]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/trace_controller.rb
Refactor more way_controller tests to use factories.
[rails.git] / app / controllers / trace_controller.rb
index e41bd01f31008e4bcf1c1c204555569b874c5350..8d9b670c5eb4b9f8419b3c59e70ac9f6c3bcf9c2 100644 (file)
@@ -170,7 +170,7 @@ class TraceController < ApplicationController
     else
       @title = t "trace.edit.title", :name => @trace.name
 
-      if request.post?
+      if request.post? && params[:trace]
         @trace.description = params[:trace][:description]
         @trace.tagstring = params[:trace][:tagstring]
         @trace.visibility = params[:trace][:visibility]