TermStorage::loadParents() is missing the <root> parent from the returned list

Created on 14 June 2013, over 11 years ago
Updated 30 January 2023, almost 2 years ago

Problem/Motivation

Steps to reproduce:
1. Create a vocabulary with two terms (A & B), both in root.
- A
- B
2. Make B a child of A AND a child of root. Save.
- A
-- B
- B
3. Edit B's. Notice that the only highlighted parent term is A. Root is not highlighted.

This is observable in UI but reveals a bug of \Drupal\taxonomy\TermStorage::loadParents(). The method filters out from the root parent from its result.

Proposed resolution

Fix \Drupal\taxonomy\TermStorage::loadParents()

Remaining tasks

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Needs work

Version

9.5

Component
TaxonomyΒ  β†’

Last updated 2 minutes ago

  • Maintained by
  • πŸ‡ΊπŸ‡ΈUnited States @xjm
  • πŸ‡¬πŸ‡§United Kingdom @catch
Created by

Live updates comments and jobs are added and updated live.
  • Needs backport to D7

    After being applied to the 8.x branch, it should be considered for backport to the 7.x branch. Note: This tag should generally remain even after the backport has been written, approved, and committed.

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.

  • The Needs Review Queue Bot β†’ tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

    Consult the Drupal Contributor Guide β†’ to find step-by-step guides for working with issues.

Production build 0.71.5 2024