-
Notifications
You must be signed in to change notification settings - Fork 2
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
Handle required form arrays #484
Conversation
8486d8f
to
575ba62
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! The problem is fixed!
One minor thing is for I remember we have fixed this kind of problem a while ago but for some reason it still exists here. Could we solve it in this PR or should we fix it in another one ? |
I also remember that this was fixed. Weird thing is that it seems that this error exists also in develop -branch. |
Introduced a possible fix. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested and looks good.
For the DAC ( i suspect for the others as well) if the fields are not filled correctly it just complains a item is needed. If there is a quick way to fix it I suggest we make a note of it and fix it as part of #429 or some other issue
I assume it will be addressed as a JSON/form validation error and can come from front-end or backend.
feel free to merge, if my comment is not addressed as part of this. |
This problem seems to be part of bigger issue. I tested this on develop branch and we don't get a helper text for invalid |
Description
Submitting forms that contain required form array fields caused server errors if these fields were invalid.
Related issues
Closes #477 & #480
Type of change
Changes Made
Testing