Use flash.now for messages to be shown during this request

This commit is contained in:
Andy Allan 2025-01-22 13:55:30 +00:00
parent 7b19ba580c
commit 322c6c31a5
2 changed files with 1 additions and 14 deletions

View file

@ -116,7 +116,7 @@ class TracesController < ApplicationController
@trace.schedule_import
redirect_to :action => :index, :display_name => current_user.display_name
else
flash[:error] = t(".upload_failed") if @trace.valid?
flash.now[:error] = t(".upload_failed") if @trace.valid?
render :action => "new"
end