Error Message Appears when Hierarchy Depth is = 0/Zero , But the Required Depth is >= 0

Created on 14 February 2024, 11 months ago
Updated 10 March 2024, 10 months ago

Problem/Motivation

Some UI verification Bug/Problem. Error Message: " The required depth cannot be greater than the hierarchy", Appears when Hierarchy Depth is = 0/Zero , But the Required Depth is >= 0

This problem / bug, might have some similar aspects covered by the following bug/problem report created by another user , https://www.drupal.org/project/cshs/issues/3270062 💬 Problem filtering first level options Needs review

Steps to reproduce

go to mydrupalweb.com/admin/structure/types/manage/article/form-display

At content type Article (Form-display tab), I modify the ''Tags'' field widget to CSHS
, and further setup the widget sub-settings at these values :

Parent: (none)
Hierarchy depth: 0 (Note: Use 0 to display all values. --> which should mean "no limit/unlimited" on hierarchy depth )
Required depth: 1 or any values higher that 'Hierarchy depth"

there will be a red box on the Required Depth box below, and error message above showing :
Error message
The required depth cannot be greater than the hierarchy depth.

The above errors message should NOT appear when the 'Hierarchy depth is set to 0 == which means universal/no limit'.

Proposed resolution

At the moment I think the 'faster forceful solution / method to fight this BUG' is by setting the 'Hierarchy Depth' at any value higher , than the Required depth.

Proposed solution : maybe it is good to include in the IF/LOGIC portion of this module, to ignore that aspect of verification / logic checking' then the is set to Hierarchy Depth is 0 / Zero.

Remaining tasks

User interface changes

API changes

Data model changes

:

🐛 Bug report
Status

Closed: duplicate

Version

4.0

Component

User interface

Created by

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

Comments & Activities

Production build 0.71.5 2024