Skip to content

[5.x]: Expand/collapse icons are shown when choosing entry from single level of multilevel structure. #16506

@Jkhvatova

Description

@Jkhvatova

What happened?

Description

We have a multilevel structure on our website, cities, product categories and products. Also we have some fields where only cities, or categories should be chosen. When modal with list of entries is open, even though only one or two levels of structure are shown, chevrons are visible to user.

Image Image

Steps to reproduce

  1. Add multilevel structure.
  2. Add entry field to separate entry, where entries from structure could be chosen.
  3. Click 'add' to open modal to view the structure.
Image Image

Expected behavior

When not all levels of multilevel structure are chosen in field setup, hide chevrons on entries that lead to hidden structure levels.

Actual behavior

Chevrons are shown even only one level of multilevel structure is set to choose.

Craft CMS version

Craft Pro 5.6.1

PHP version

8.2.26

Operating system and version

Linux 6.10.14-linuxkit

Database type and version

MySQL 8.0.36

Image driver and version

magick 3.7.0 (ImageMagick 7.1.1-32)

Installed plugins and versions

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions