Menu links not saved in the correct order

Created on 28 August 2019, about 5 years ago
Updated 4 February 2023, over 1 year ago

Problem/Motivation

When rearranging menu links on /admin/structure/menu/manage/main, menu links do not get saved properly if a parent/child relationship of two menu links is flipped.

Steps to reproduce

  1. Create the following menu structure:
    - item 1
      - item 2
        - item 3
  2. Rearrange the menu items as follows and save:
    - item 3
      - item 1
        - item 2

Expected results: The menu items are saved in the order above.

Actual results: The menu items are saved like this:

      - item 1
- item 2
  - item 3

Proposed resolution

This looks like the same issue as https://www.drupal.org/node/181126#comment-632270 β†’ , but the fix does not seem to work any more. The attached patch updates the fix for Drupal 8.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Active

Version

10.1 ✨

Component
Menu systemΒ  β†’

Last updated 1 day ago

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡³πŸ‡ΏNew Zealand quietone New Zealand

    I tested this on Drupal 10.1.x, umami install. I was able to reproduce a similar problem as you can see in the screenshots. I also tested the patch and it did work such that the links were displayed correctly.

    Start


    After re-arranging links

Production build 0.71.5 2024