Skip to content

Commit ae4ce0a

Browse files
Merge pull request #11413 from alphagov/fix-slug-override-for-lp
[WHIT-3323] Fix base_path setting on new landing pages
2 parents f9d223b + 995582d commit ae4ce0a

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

app/controllers/admin/editions_controller.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,6 @@ def permitted_edition_attributes
299299
fatality_notice_casualties_attributes: %i[id personal_details _destroy],
300300
document_attributes: [
301301
:id,
302-
:slug,
303302
{
304303
review_reminder_attributes: %i[
305304
id

app/views/admin/plan_for_change_landing_pages/_additional_significant_fields.html.erb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
label: {
44
text: "Base Path",
55
},
6-
name: "edition[document_attributes][slug]",
7-
id: "edition_document_slug",
6+
name: "edition[slug_override]",
7+
id: "edition_slug_override",
88
heading_size: "m",
9-
value: edition.slug,
10-
error_items: errors_for(edition.document.errors, :slug),
9+
value: edition.slug_override,
10+
error_items: errors_for(edition.errors, :slug_override),
1111
} %>
1212
<% end %>

0 commit comments

Comments
 (0)