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

Closed
stevenbal opened this issue Oct 22, 2024 · 1 comment · Fixed by #4903
Closed
Assignees
Labels
bug Something isn't working owner: utrecht
Milestone

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
@sergei-maertens sergei-maertens moved this from Todo to In Progress in Development Dec 12, 2024
@sergei-maertens
Copy link
Member

Can no longer reproduce, so this confirms that #4903 fixed it

@github-project-automation github-project-automation bot moved this from In Progress to Done in Development Dec 12, 2024
@sergei-maertens sergei-maertens linked a pull request Dec 12, 2024 that will close this issue
9 tasks
@sergei-maertens sergei-maertens added this to the Release 3.0 milestone Dec 13, 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: Done
Development

Successfully merging a pull request may close this issue.

3 participants