From 845f1229d8915fe16f0c74e0c07f0791cec693dd Mon Sep 17 00:00:00 2001 From: Arthur Campbell Date: Fri, 21 Apr 2023 17:04:31 +0100 Subject: [PATCH] correct minor routing error to ensure correct url is shown and tab selected after requesting csv email --- app/controllers/sales_logs_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/sales_logs_controller.rb b/app/controllers/sales_logs_controller.rb index a338fcc48..4ff523e4a 100644 --- a/app/controllers/sales_logs_controller.rb +++ b/app/controllers/sales_logs_controller.rb @@ -47,9 +47,11 @@ class SalesLogsController < LogsController all_orgs = params["organisation_select"] == "all" # what's this for? params['organisation_select'] appears to always be nil codes_only_export = codes_only_export?(params) EmailCsvJob.perform_later(current_user, search_term, @session_filters, all_orgs, nil, codes_only_export, "sales") - redirect_to csv_confirmation_lettings_logs_path + redirect_to csv_confirmation_sales_logs_path end + def csv_confirmation; end + def post_create_redirect_url(log) sales_log_url(log) end