api-platform / api-platform/admin
Issues with edit form when useEmbedded = true
- Lingua principale
- TypeScript
- Stelle
- 516
- Fork
- 134
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
**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?
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.