From c299bd42efe234931f8941691b0e888f5c374cc3 Mon Sep 17 00:00:00 2001 From: J Guthrie Date: Wed, 25 Jul 2018 01:49:51 +0100 Subject: [PATCH] No trace description now redirects to /new --- app/controllers/traces_controller.rb | 1 + 1 file changed, 1 insertion(+) 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 -- 2.43.2