Browse Source

feat: persist add_another_location even on validation failure

CLDC-1390-la-lookup-fallback-WIP
natdeanlewissoftwire 2 years ago
parent
commit
3105dc7baf
  1. 2
      app/views/locations/edit_local_authority.html.erb

2
app/views/locations/edit_local_authority.html.erb

@ -5,7 +5,7 @@
) %> ) %>
<% end %> <% 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| %>
<div class="govuk-grid-row"> <div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds"> <div class="govuk-grid-column-two-thirds">
<%= f.govuk_error_summary %> <%= f.govuk_error_summary %>

Loading…
Cancel
Save