api-platform / api-platform/admin

Issues with edit form when useEmbedded = true

Offen
#346 8 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
516
Forks
134
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

**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?

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.