-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Menu link parent can be lost after saving a page as draft and then published #3241
Comments
Next steps:
|
|
Possibly related Drupal 10.2.x change record: |
I think I found the actual 10.2.x change that is causing this problem: Basically code was added to the core Drupal.org issue associated with the change: |
My working theory after looking through a bunch of issues and code history on Drupal.org is:
I verified that:
|
Next steps: Create a PR that adds a database update to change menu links with the und langcode to have the site's default langcode instead. The PR can also update the az_menu_links migration. We will need to test the database update on a site with multiple languages. For the migration, we should consider that the source site and destination site may not have the same languages. |
…s and add DefaultLangcode migrate plugin. (#3303)
…s and add DefaultLangcode migrate plugin. (#3303)
Problem/Motivation
An issue was introduced with Drupal 10.2 (Quickstart 2.9.0) which may result in the menu link for a page having its parent item removed, so that the menu item is moved to the top level of the menu. This appears to only occur when using a content moderation workflow.
Describe the bug
The issue may be related to the langcode field for menu links.
und
(for "undetermined") in the database.en
in the menu_link_content, menu_link_content_field_revision, and menu_link_content_revision tables.en
in menu_link_content_data. This is also when the parent value is set toNULL
. (The expanded field is also changed from0
toNULL
.)NULL
again, possibly because the langcode is alreadyen
.I was able to reproduce this issue on a fresh Quickstart build with the demo content installed by manually changing the langcode field for a menu link from
en
tound
in the menu_link_content tables in the database. After saving the page as Draft and then saving it as Published, the parent field for the menu link was set toNULL
.@trackleft noted that this issue may be related to the following Drupal change records and issues:
To Reproduce
Steps to reproduce the behavior:
und
).Proposed resolution
Still to be determined.
Expected behavior
Saving new revisions of a page, regardless of moderation state, should not change the parent menu item for the page.
Additional context
This has been confirmed to affect multiple Arizona Sites.
The text was updated successfully, but these errors were encountered: