Skip to content

Commit

Permalink
YALB-1663: User getting error page when clicking "edit layout and con…
Browse files Browse the repository at this point in the history
…tent" in top menu (#530)

* fix(YALB-1663): deleting default section does not error

There was a problem where a user deleted the default content section.
Upon saving this, they were unable to go back in to modify the page in
layout builder.  This was due to an access check issue in
section_library.  This patch fixes this so that the user could edit the
page in layout builder again.

* feat(YALB-1663): allow "Add Section" after Title and Metadata

layout_builder_lock was disallowing sections to be added after the Title
and Metadata section of a Page, or the bottom content section of a Profile.
Since we are now allowing them to remove the default content section, they
will need a way to add a new section, which this provides.  "Add Section" is
now displayed below in these cases.
  • Loading branch information
dblanken-yale authored Jan 11, 2024
1 parent 2e97fc6 commit 65bd722
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions web/profiles/custom/yalesites_profile/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@
},
"drupal/quick_node_clone": {
"Fix cloning of inline blocks and paragraphs: https://www.drupal.org/project/quick_node_clone/issues/3100117": "https://www.drupal.org/files/issues/2023-04-25/quick-node-clone--inline-blocks--3100117-32.patch"
},
"drupal/section_library": {
"Fix access check issues on add_to_template link: https://www.drupal.org/project/section_library/issues/3241715": "https://www.drupal.org/files/issues/2022-09-21/3241715-6.patch"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ third_party_settings:
4: 4
5: 5
6: 6
7: 7
8: 8
-
layout_id: layout_onecol
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ third_party_settings:
4: 4
5: 5
6: 6
7: 7
8: 8
-
layout_id: ys_layout_two_column
Expand All @@ -79,7 +78,9 @@ third_party_settings:
context_mapping: { }
weight: 0
additional: { }
third_party_settings: { }
third_party_settings:
layout_builder_lock:
lock: { }
layout_builder_restrictions:
allowed_block_categories:
- 'Chaos Tools'
Expand Down

0 comments on commit 65bd722

Please sign in to comment.