Incompatible with other modules due to change from #options to #menu

Created on 21 July 2021, over 3 years ago
Updated 10 March 2023, almost 2 years ago

Problem/Motivation

In 2989526 β†’ the form widget for the element was changed from a standard select to a custom element. As part of this, the #options array key where the menu parent options were stored changed to #menu.

Other modules that interact with this element expect the values to be in the #options key. The one causing issues for me is menu_admin_per_menu, which checks whether there are any values in #options and, if not hides the menu link form.

Steps to reproduce

  1. Enable menu_select
  2. Enable another module, such as menu_admin_per_menu
  3. The menu link form is no longer accessible.

Proposed resolution

I can work on a coded solution for this, but I'm wondering if you have any preference for how to handle this. Would it be best to change the element back to a standard select with an #options key or throw a copy of the #menu in there and mark it validated, or something else?

Remaining tasks

  1. Determine best strategy for solving this
  2. Code a solution
πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States i.mcbride

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.

Production build 0.71.5 2024