api-platform / api-platform/admin

Issues with edit form when useEmbedded = true

Abierto
#346 8 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
516
Forks
134
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

**API Platform version(s) affected**: 2.4.3

**Description**
I tried setting useEmbedded to true in my data provider (followed the example in [APIP documentation](https://api-platform.com/docs/admin/handling-relations/)). I created create and edit forms following the examples. In edit form I have:

```
({ name: searchText })}
format={v => v['@id'] || v}
reference="certificate_types"
source="certificateType"
>

```

The create view works as expected but edit is causing issues unless I reselect he certificate type field.

If I edit the page without touching the certificate type field the whole embedded data object is sent. If I reselect the certificate type field, only IRI is sent with the request.

Is this a bug or am I missing something?

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.