Allow a POST with no arguments to trace#edit to fetch the form
This commit is contained in:
parent
34129ad9b5
commit
e23541c20f
2 changed files with 31 additions and 4 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue