[6.x]: Relation fields with "Maintain hierarchy" show selected elements as a flat list in the entry editor
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
Start by tracing how the entry editor renders selected elements for Entries relation fields with “Maintain hierarchy” enabled, then compare that path with the Craft 5 nested display described in the issue. Reproduce with a parent and child entry in a structure section; done when the child is visibly indented beneath its parent while hierarchy behavior remains intact.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What happened?
Description
In Craft 5, a relation field with "Maintain hierarchy" enabled showed the selected elements nested, with indentation and branch lines. In Craft 6 the field still enforces hierarchy (it fills gaps and applies the branch limit), but the selected elements are drawn as a flat list.
Steps to reproduce
- Create a structure section with a parent entry and a child entry, for example "News" and "Club news" below it.
- Create an Entries relation field with that section as its source and "Maintain hierarchy" turned on.
- Add the field to an entry type, edit an entry, and select both the parent and the child.
- Save and look at the field in the entry editor.
Expected behavior
The child is shown nested under the parent, with indentation as in Craft 5.
Actual behavior
The parent and the child are stacked chips with identical indentation. Nothing shows the child's level, even though the database has the child at level 2 in structureelements.
Craft CMS version
6.x-dev @ 7c6ece5ff9ebcd0ff2380d545ae822c0502c715c
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
- Ngôn ngữ chính
- PHP
- Star
- 3.6k
- Fork
- 710
- Merge trung bình
- 12 giờ 44 phút
- Pull request đã merge (30 ngày)
- 335
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của craftcms/cms
-
repo:cms
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
craftcms/cms#20235 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug repo:cms
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
craftcms/cms#20205 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[6.x]: Element index View menu: sort direction buttons only update after the table has loadedĐang mởbug repo:cms
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
craftcms/cms#20203 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[5.x]: Moving an asset with “Replace it” throws TypeError: volumeUid must be of type string, null givenCó thể đã có người làm @i-just đã nhận 3 ngày trước. Đang mởbug repo:cms
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
craftcms/cms#20128 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
repo:cms
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
craftcms/cms#20234 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
mautic/mautic#18022 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
0. Needs triage bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
nextcloud/fulltextsearch#1061 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
PHP 8.6 compatibilityĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100