[6.x]: Relation fields with "Maintain hierarchy" show selected elements as a flat list in the entry editor
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- PHP
- Stelle
- 3.6k
- Fork
- 710
- Merge medio
- 12h 44m
- PR unite (30g)
- 335
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di craftcms/cms
-
repo:cms
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
craftcms/cms#20235 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug repo:cms
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
craftcms/cms#20205 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[6.x]: Element index View menu: sort direction buttons only update after the table has loadedApertabug repo:cms
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
craftcms/cms#20203 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[5.x]: Moving an asset with “Replace it” throws TypeError: volumeUid must be of type string, null givenForse già presa @i-just l’ha presa 3 giorni fa. Apertabug repo:cms
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
craftcms/cms#20128 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
repo:cms
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
craftcms/cms#20234 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di craftcms/cms
Issue simili
-
Hand-built AdminModules URL in DisplayBackOfficeHeader.php (line 36), flagged for PrestaShop 9Aperta
Difficoltà 1/5 1-3 ore Idoneità per principianti 78/100
PrestaShopCorp/ps_accounts#677 ·
-
bug webbackend
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
DOMjudge/domjudge#3886 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
opensourcepos/opensourcepos#4794 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno