Support for Terms having Multiple Parents

Created on 18 July 2023, over 1 year ago

Problem/Motivation

Recently, a client selected multiple parents for a term, which messes up the hierarchical taxonomy menu.

Steps to reproduce

  1. Install the module
  2. Create a block set to the Tags taxonomy
  3. Select multiple parents for a term
  4. Notice that the child term shows up multiple times under the same parent (instead of under both parents)

Proposed resolution

  1. Remove duplicate terms from TermStorage::loadTree.
  2. Use `in_array()` instead of `reset()` to check if the term is a child.
Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

🇨🇦Canada Nathan Tsai

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

Comments & Activities

Production build 0.71.5 2024