D10 CSHS does not work in views

Created on 9 August 2023, 11 months ago
Updated 31 August 2023, 10 months ago

Problem/Motivation

The CSHS behaves more like a normal dropdown in Views with Drupal 10. It does not display different levels of the tree in seperate dropdowns, rather, it displays in a long list like a normal dropdown.

The dropdown looks something like this:

( the field label )
[ - Please select - v ]
-------------------------------
| - Please select -
|
| Category 1
| Category 1-A
| Category 1-B
| Category 2
... etc
-------------------------------

I would expect in this example only "Category 1" and "Category 2" to be displayed.

Steps to reproduce

Upgrade to D10
Create a View
Add a filter for taxonomy term, set to use CSHS formatter
Save the view
Navigate to the View and click the dropdown
The dropdown displays all taxonomy terms, regardless of hierarchy. No additional fields are populated.

The issue is also present in Nodes/other forms using CSHS - all taxonomy terms are displayed instead of the separate fields as expected.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Postponed: needs info

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States SteelStrung

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

Comments & Activities

  • Issue created by @SteelStrung
  • Status changed to Postponed: needs info 10 months ago
  • πŸ‡§πŸ‡ͺBelgium tim-diels Belgium πŸ‡§πŸ‡ͺ

    Did you check πŸ› Drupal 10 proper once dependency Fixed ?

  • πŸ‡§πŸ‡ͺBelgium bart lambert

    Bumping into the same issue.

    I have a field where I need to choose a taxonomy term.
    My taxonomylist has main categories , categories en sub categories.

    EXAMPLE/
    main cat. 1
    cat 1.1
    sub cat 1.1.1
    sub cat 1.1.2
    cat 1.2
    sub cat 1.2.1
    sub cat 1.2.2

    In D9 everything worked fine: I had to choose a Main category, then a new dropdown window appeared to choose the next level and so on until I reach the last one.

    I use "force deepest level" as option

    After upgrading to D10 I just get a dropdownlist on the form of my content

    hope this will be looked at and fixed very soon

  • πŸ‡§πŸ‡ͺBelgium bart lambert

    @tim-diels: yup applied patches without result

  • πŸ‡§πŸ‡ͺBelgium bart lambert

    Added to pictures to clarify:

    D9 is working fine
    D10 is only 1 dropdown list

  • πŸ‡§πŸ‡ͺBelgium tim-diels Belgium πŸ‡§πŸ‡ͺ

    Seems to me you have the issue described in the other issue (content fields). This issue is about views. Did you check the code is changed and did a drupal cache clear and browser cache clear? Are there any errors in the browser console?

  • πŸ‡§πŸ‡ͺBelgium bart lambert

    Hoi Tim, you saved my day! Browser Cache was not cleared. now everything is fine thanks for the help

Production build 0.69.0 2024