Drag’n’drop not disabled when term has multiple parents

Created on 23 November 2023, about 1 year ago
Updated 24 November 2023, about 1 year ago

Problem/Motivation

If a vocabulary had terms with multiple parents, drag'n'drop icons and "Show row weights" used to be hidden on a terms overview form. Now those items are displayed, although there are terms with multiple parents, and it's actually possible to drag'n'drop terms and save the new order. This seems to have been introduced in https://www.drupal.org/project/drupal/issues/2984504 🐛 Access to 'Reset to alphabetical' denied for users without administer permission Fixed .

Steps to reproduce

  • Add term to Tags vocabulary and assign multiple parents to it
  • Visit /admin/structure/taxonomy/manage/tags/overview
  • The following message is displayed: "Tags contains terms with multiple parents. Drag and drop of terms with multiple parents is not supported, but you can re-enable drag-and-drop support by editing each term to include only a single parent". However, drag'n'drop icons and "Show row weights" link are still displayed.
🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Taxonomy 

Last updated 2 days ago

  • Maintained by
  • 🇺🇸United States @xjm
  • 🇬🇧United Kingdom @catch
Created by

🇨🇭Switzerland boromino

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024