Menu item is disabled when saving node

Created on 8 October 2020, over 4 years ago

Problem/Motivation

When saving a node from another domain than the one the node is attached to, the menu link item of the node is disabled.

Steps to reproduce

Create a domain A
Create a domain B

Create a node with a menu link and attach it to the domain B.
Configure the menu link so it appears only on domain B.

Edit the node from the domain A url and save it : the menu link is disabled.

Proposed resolution

Apply the same solution as https://git.drupalcode.org/project/domain_menu_access/-/commit/4906ae8d6... by checking that hook_translated_menu_link_alter() is not call in a node edit form context.

🐛 Bug report
Status

Needs review

Version

1.3

Component

Code

Created by

🇫🇷France Nixou Toulon

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.

  • 🇵🇱Poland lord_t

    I've spotted it depends the link from which you are editing.
    If you edit from
    /admin/structure/menu/item//edit (this is the link from "edit" on menu positions list)
    then it is fine.

    But if you edit from /admin/structure/menu/item/ (this is the link which you can find when you are on translate tab, it's the link of tab) then "Enabled" will be not checked if current domain is not selected in "Show menu item only on selected domains" and other domain is there selected.

  • 🇧🇪Belgium tim-diels Belgium 🇧🇪

    We're not supporting the 7.x branch anymore. So closing the issue.

Production build 0.71.5 2024