Allow a POST with no arguments to trace#edit to fetch the form

This commit is contained in:
Tom Hughes 2017-02-13 10:09:43 +00:00
parent 34129ad9b5
commit e23541c20f
2 changed files with 31 additions and 4 deletions

View 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]