From ce047c4255a9fb2d5d90f688f9d0640186541523 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Tue, 12 Oct 2021 13:32:45 +0100 Subject: [PATCH] Ensure Suppliers multiselect options persist between page loads --- app/views/admin/reports/packing.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/reports/packing.html.haml b/app/views/admin/reports/packing.html.haml index 7ece91cf71..3bd3f85604 100644 --- a/app/views/admin/reports/packing.html.haml +++ b/app/views/admin/reports/packing.html.haml @@ -9,7 +9,7 @@ .row .alpha.two.columns= label_tag nil, t(:report_producers) .omega.fourteen.columns - = select_tag("q[supplier_id_in]", options_from_collection_for_select(@suppliers, :id, :name, params[:supplier_id_in]), {class: "select2 fullwidth", multiple: true}) + = select_tag("q[supplier_id_in]", options_from_collection_for_select(@suppliers, :id, :name, params.dig(:q, :supplier_id_in)), {class: "select2 fullwidth", multiple: true}) .row .alpha.two.columns= label_tag nil, t(:report_customers_cycle)