Problem filtering first level options

Created on 17 March 2022, over 2 years ago
Updated 22 March 2023, over 1 year ago

Problem/Motivation

I want to use CSHS to limit the selection to the first level.
When configuring in the field (Manage Form Display) I always get the error: "The hierarchy depth cannot be 1 because the selection list has 0 levels."

What am I doing wrong?

Steps to reproduce

My settings:
Parent: (none)
Hierachy depth: 1
Required depth: 1

Proposed resolution

Looking at the source at CshsOptionsFormHelper.php in validateSettingsForm it seems to me, that all options are removed from the list, because no parent is selected. Shouldn't there be a check that the list of options is only filtered if a parent is also specified?

πŸ’¬ Support request
Status

Needs review

Version

4.0

Component

Code

Created by

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024