Incorrect display of taxonomy terms hierarchy with multiple parents

Created on 3 December 2024, 23 days ago

Problem/Motivation

For a project I needed to add taxonomy terms to multiple parents. I noticed that the representation of the hierarchy is incorrect as soon as a term is assigned to several parents.

Steps to reproduce

- Install Drupal 11.0.9
- Add terms in the following hierarchy:

- Term 1
-- Term 1.1
- Term 2
-- Term 2.1
- Term 3

- Now create a new term and use as parents Term 1.1 and Term 3

This will display the terms in the following way:
- Term 1
-- Term 1.1
-- Term (multiple parents)
- Term 2
-- Term 2.1
- Term 3
-- Term (multiple parents)

Instead, this would be the expected behavior:
- Term 1
-- Term 1.1
--- Term (multiple parents)
- Term 2
-- Term 2.1
- Term 3
-- Term (multiple parents)

As you can see, the hierarchy of the term Term (multiple parents) is displayed in an incorrect way.

I believe the problem occurred when adding the status field because adjustments were made in the OverviewTerms form.

🐛 Bug report
Status

Active

Version

11.0 🔥

Component

taxonomy.module

Created by

🇦🇹Austria schwarli4783

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

Comments & Activities

Production build 0.71.5 2024