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
required tagit metadata fields not validated #3157
Comments
PRs: pkp-lib ojs-stable-3_1_0: #3159 |
@NateWr, could you take a look at the PR above? |
I left one comment in the code, just trying to get my head around it. I also ran into a couple of related issues. I've added disciplines and set it to required. I've added some items to the discipline tag it and saved it. Now if I go back and remove them and save it, the form saves successfully, but the tags are still t here. Also, if I go to a submission without any disciplines and I submit the form, I get an unhelpful error message: Is there any way we can improve that? |
Yes, that is an unhelpful error message -- it was like this before -- I will try to add the appropriate locale keys... And concerning the second one:
Do you see the same error message but in the very background, on the page behind the modal, thus almost invisible? -- I always have this strange issue... and do not know why... I.e. I think the error message is there, just very hard visible, and thus the form as such not saved, then reloaded with the current submission fields (as always)... |
Oh I do see it. It looks like it is getting embedded into the body of the page instead of flying up the side. Looking at the response to the ajax request, it looks like it's returning an |
@NateWr, I've added the appropriate form validation locale keys. |
@NateWr, now that the submission metadata form validation messages are correctly displayed, I think this issue/PR is finished. Could you take a final look? THANKS!!! |
New PRs which I'll merge when the tests pass: |
#3157 fix required tagit metadata fields validation
pkp/pkp-lib#3157 fix required tagit metadata fields validation
All merged. |
Those metadata fields that use tagit are not validated correctly.
S. also https://forum.pkp.sfu.ca/t/disciplines-required-not-passing-although-field-is-completed-ojs-3-1/34747/3
The text was updated successfully, but these errors were encountered: