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

Medis imp export api fe valid #23

Merged
merged 2 commits into from
Aug 2, 2023

Conversation

evgeny-pluzhnikov
Copy link
Collaborator

Description

Convert empty arrays to null when doing multi upload

There is a bug in form.io framework to do with arrays when calling validation defined for the form. The bug exposes itself when you call validation routine more than once (our case in multi upload). The work around for this bug is to replace empty arrays in json payload will null.

Types of changes

Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have read the CONTRIBUTING doc
  • I have checked that unit tests pass locally with my changes
  • I have run the npm script lint on the frontend and backend
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • I have approval from the product owner for the contribution in this pull request

Further comments

@evgeny-pluzhnikov evgeny-pluzhnikov merged commit d1e02db into master Aug 2, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants