Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[6.x]: Relation fields with "Maintain hierarchy" show selected elements as a flat list in the entry editor

オープン
#20,171 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
php
領域
frontend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

bug repo:cms
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

  1. Create a structure section with a parent entry and a child entry, for example "News" and "Club news" below it.
  2. Create an Entries relation field with that section as its source and "Maintain hierarchy" turned on.
  3. Add the field to an entry type, edit an entry, and select both the parent and the child.
  4. 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
主要言語
PHP
スター
3.6k
フォーク
710
平均マージ
11時間 26分
マージ済み PR(30日)
324

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

craftcms/cms のほかの issue

craftcms/cms の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。