open-formulieren / open-forms

Smart and dynamic forms
https://open-forms.readthedocs.io
Other
37 stars 26 forks source link

Objecttype v2 mapping: Upload in repeating group "replaces" all other data in repeating group on submit #4689

Open LaurensBurger opened 2 months ago

LaurensBurger commented 2 months ago

Product versie / Product version

2.6.x

Customer reference

DH

Omschrijf het probleem / Describe the bug

When "Bijlage informatieobjecttype" is set and a upload is present in a repeating group it replaces all values in the repeating group with just the result of the attachment upload:

json output with upload:

{
    "type": "https://objecttypen.nl/api/v2/objecttypes/6e3a6f27-d248-46eb-853d-1373a1b9c6b0",
    "record": {
        "typeVersion": 2,
        "data": {
            "step": [
            "https://openzaak.nl/documenten/api/v1/enkelvoudiginformatieobjecten/f9699f02-24fd-4799-8fcf-8c2aac434de0"
            ]
        },
        "startAt": "2024-09-20"
    }
}

output no upload:

{
    "type": "https://objecttypen.nl/api/v2/objecttypes/6e3a6f27-d248-46eb-853d-1373a1b9c6b0",
    "record": {
        "typeVersion": 2,
        "data": {
            "step": [
                {
                    "tekstveld": "1",
                    "1tekstveld": "a",
                    "eMailadres": "foo@bar.com",
                    "bestandsupload": []
                }
            ]
        },
        "startAt": "2024-09-20"
    }
}
joeribekker commented 2 months ago

Estimate: 2-3 days