UVE Quick Edit opens an empty form for related contentlets and saving it overwrites their values
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- java, typescript
Línea de trabajo
Start in core-web/libs/portlets/edit-ema/portlet/src/lib/store/features/editor/withEditor.ts and trace $editorContentletEditData, getContentletsInContainer, and the Quick Edit save path. First check how the container lookup and DOM payload provide form values, then identify how the issue's proposed inode fetch or failure message should cover both traditional and headless pages. Done means related contentlets load stored values or cannot be saved from a blank form, while contentlets in containers retain current behavior.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem Statement
In the Universal Visual Editor, Quick Edit opens an empty form for a contentlet that UVE can select but that is not one of the contentlets placed in the page's containers. The common case is a related contentlet (a child pulled in through a Relationship field) that a template marks up with the data-dot-object="contentlet" attributes so editors can select it. The same thing happens on headless pages.
UVE detects the element, draws the hover overlay and opens the contentlet menu. Full Editor loads the contentlet correctly. Edit (Quick Edit) opens the panel with every field blank and radio fields set to their default values.
Cause: $editorContentletEditData (core-web/libs/portlets/edit-ema/portlet/src/lib/store/features/editor/withEditor.ts) fills the form by searching for the selected identifier in pageAsset.containers[containerId] through getContentletsInContainer. A related contentlet is not in that list (only its parent is), so the lookup finds nothing. The panel then falls back to the DOM payload, which holds only the data-dot-* attributes and no field values.
Data loss (reproduced): the blank form still carries the real contentlet's inode. Changing any single field enables Save. Save then sends the whole form through saveQuickEditFields (EDIT workflow action), including empty strings (kept by filterFormValues) and radio defaults (from coerceFieldValue), which overwrites the contentlet's stored values.
Steps to Reproduce
- Create a child content type with a Text field (
Heading) and a Radio field (Color, valuesRed|red/Blue|blue, defaultred). Create a parent content type with a Text field and a Relationships field (One to many) to the child. - Create a child contentlet (Heading
Child A, Color Blue) and a parent contentlet that relates it. Publish both. - In the container code for the parent type, loop over the related children and wrap each one in an element carrying
data-dot-object="contentlet",data-dot-inode,data-dot-identifier,data-dot-type,data-dot-basetype,data-dot-lang,data-dot-variant,data-dot-content-type-id,data-dot-can-edit="true"anddata-dot-on-number-of-pages. - Add the parent to a page and open the page in UVE. Hover over the child and click ⋮ → Full Editor: the values load correctly.
- Click ⋮ → Edit: Heading is empty and Color shows Red (the default).
- Type any value in Heading, which enables Save, and click Save.
- Open the child in the content editor: Color is now Red, so the stored value was overwritten.
Acceptance Criteria
- Quick Edit loads the stored field values for a selected contentlet that is not in the page asset's container list, for example by fetching it by inode when the container lookup misses.
- If the values can't be loaded, Quick Edit doesn't offer an editable blank form that can save over the stored contentlet (show a message and point to Full Editor instead).
- Works on both traditional (Velocity) and headless pages.
- Contentlets placed directly in containers behave exactly as they do today.
dotCMS Version
Reproduced on Evergreen 26.10.29-01. Reported on 26.11.06-03 and 26.11.10-02 (code path confirmed at tag v26.11.10-02).
Severity
High - Major functionality broken
Links
- Lenguaje dominante
- Java
- Estrellas
- 972
- Forks
- 493
- Merge medio
- 2 d 12 h
- PR fusionados (30 d)
- 228
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de dotCMS/core
-
dotCMS : UVE OKR : Customer Support Team : Maintenance Type : Defect
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 2 días
-
OKR : Customer Support Team : Maintenance Type : Defect
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
Opening content from Content Search replaces the "Search" breadcrumb in the new Edit Content screenAbiertodotCMS: New Edit Contentlet OKR : Customer Support Team : Falcon Type : Defect
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
Escape the Binary field hint in the legacy content editor so an apostrophe doesn't break the fieldAbiertoOKR : Customer Support Team : Maintenance Type : Defect
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Los mantenedores suelen responder en 2 días
-
dotCMS : Permissions OKR : Customer Support Team : Maintenance Type : Defect
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 2 días
Todos los issues de dotCMS/core
Issues similares
-
desktop grp:about type:graphics-bug ui-public
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 2 días
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
it-at-m/Wahllokalsystem#3846 ·
Los mantenedores suelen responder en 2 días
-
Area/Connector module/solace Priority/Low Type/Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
ballerina-platform/ballerina-library#9849 ·
Los mantenedores suelen responder en 1 día