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.

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.
CommentFileSizeAuthor
tags.png68.99 KBboromino

Issue fork drupal-3403785

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

boromino created an issue. See original summary.

cilefen’s picture

Issue tags: -Drag’n’drop not disabled when term has multiple parents

boromino’s picture

Status: Active » Needs review
smustgrave’s picture

Version: 10.1.x-dev » 11.x-dev
Status: Needs review » Needs work
Issue tags: +Needs Review Queue Initiative, +Needs tests

Seems to have caused some existing test failures.

Also as a bug will need a test case of it's own to show the problem, would recommend to see if there is an existing one that could be extended first.

Moving to development branch, MR should be updated as well.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.