Cannot disable Menu Link unless Taxonomy term is unpublished

Created on 8 February 2025, 2 months ago

Problem/Motivation

Because of the latest commit in https://www.drupal.org/project/taxonomy_menu/issues/3408881 Hide unpublished/disabled terms Active I am not able to simply disable a menu link from UI, unless its related taxonomy term is unpublished. But I do not want to unpublish the term itself as I do have multiple taxonomy menus built on the same vocabulary, and some links have to be published under one menu but not the other.

Steps to reproduce

Proposed resolution

Traced the bug to that recent commit where in isActive() function we rely solely on taxonomy term status without taking into consideration the choice made on Menu Link UI (to disable/enable it).

Attaching a patch to modify the recent commit to only return the link status based on taxonomy term status as "inactive" if the term is unpublished. Otherwise, it should return the status selected for the link itself.

🐛 Bug report
Status

Active

Version

3.7

Component

Code

Created by

🇺🇸United States veronicaSeveryn

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024