Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export of Form with ZGW registration backend with legacy Zaaktype empty cannot be imported #4779

Open
stevenbal opened this issue Oct 22, 2024 · 0 comments
Assignees
Labels
bug Something isn't working owner: utrecht

Comments

@stevenbal
Copy link
Contributor

Product versie / Product version

latest / a755cd5

Customer reference

No response

Omschrijf het probleem / Describe the bug

If I export a form that has ZGW registration backend and uses the Zaaktype select instead of the legacy URL field:

image

And I export it, the export has zaaktype="" in the registration options:

"registration_backends": [{"key": "backend1", "name": "zgw", "backend": "zgw-create-zaak", "options": {"zaaktype": "", "catalogue": {"rsin": "000000000", "domain": "TEST"}, "objecttype": "http://localhost:8001/api/v2/bla", "zgw_api_group": 1, "objects_api_group": 1, "property_mappings": [], "informatieobjecttype": "http://localhost:8003/catalogi/api/v1/informatieobjecttypen/531f6c1a-97f7-478c-85f0-67d2f23661c7", "case_type_identification": "ZT-001"}}]

If I try to import this form, the import fails because of this empty zaaktype:

image

Stappen om te reproduceren / Steps to reproduce

  1. Create a Form
  2. Add zgw registration backend and select a zaaktype (leave legacy field empty)
  3. Export the form
  4. Try to import the form
  5. Observe the error

Verwacht gedrag / Expected behavior

The zaaktype field should be properly exported, also if the legacy field is empty

Screen resolution

None

Device

None

OS

None

Browser

No response

@stevenbal stevenbal added bug Something isn't working triage Issue needs to be validated. Remove this label if the issue considered valid. labels Oct 22, 2024
@joeribekker joeribekker added owner: utrecht and removed triage Issue needs to be validated. Remove this label if the issue considered valid. labels Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working owner: utrecht
Projects
Status: Todo
Development

No branches or pull requests

3 participants