Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Jkhvatova opened this issue Jan 23, 2025 · 2 comments
Assignees
Labels

Comments

@Jkhvatova
Copy link

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

@Jkhvatova Jkhvatova added the bug label Jan 23, 2025
@brandonkelly brandonkelly self-assigned this Jan 24, 2025
@brandonkelly
Copy link
Member

Thanks for reporting that! Fixed now for the next Craft 4 and 5 releases.

@brandonkelly
Copy link
Member

Craft 4.14.2 and 5.6.2 are out with that fix. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants