From: J Guthrie Date: Wed, 25 Jul 2018 00:49:51 +0000 (+0100) Subject: No trace description now redirects to /new X-Git-Tag: live~3493^2~4 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/c299bd42efe234931f8941691b0e888f5c374cc3?ds=inline;hp=-c No trace description now redirects to /new --- c299bd42efe234931f8941691b0e888f5c374cc3 diff --git a/app/controllers/traces_controller.rb b/app/controllers/traces_controller.rb index 8994d8a2e..a50f00829 100644 --- a/app/controllers/traces_controller.rb +++ b/app/controllers/traces_controller.rb @@ -117,6 +117,7 @@ class TracesController < ApplicationController do_create(params[:trace][:gpx_file], params[:trace][:tagstring], params[:trace][:description], params[:trace][:visibility]) rescue StandardError => ex + render :action => "new" if !@trace.valid? logger.debug ex end