From 3105dc7bafc8fef48aa6ca1a4204b9966feef630 Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Thu, 8 Sep 2022 17:26:48 +0100 Subject: [PATCH] feat: persist add_another_location even on validation failure --- app/views/locations/edit_local_authority.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/locations/edit_local_authority.html.erb b/app/views/locations/edit_local_authority.html.erb index 51894ab89..716531a92 100644 --- a/app/views/locations/edit_local_authority.html.erb +++ b/app/views/locations/edit_local_authority.html.erb @@ -5,7 +5,7 @@ ) %> <% end %> -<%= form_for(@location, method: :patch, url: location_path(location_id: @location.id)) do |f| %> +<%= form_for(@location, method: :patch, url: location_path(location_id: @location.id, add_another_location: params[:add_another_location])) do |f| %>
<%= f.govuk_error_summary %>