-
Notifications
You must be signed in to change notification settings - Fork 437
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
Fix Request-a-Copy grant form optional message not optional in form validation #2439
Conversation
Message is optional: remove req in [disabled]
@amgciadev @tdonohue Hi! I tried to test, but the fix did not seem to correct the problem, if I do not put a text in the Message text box, the answer cannot be sent, no matter if the choice is to send or deny the request. Just to let you now what i did to test:
|
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.
Thanks @amgciadev. It works for me
@pilasou check your network tab when you approve the request. Is it possible you're getting a 403 - Invalid CSRF token error response? I got that too at first. If so, that's a variant of #1486, and not related to this PR
Hi @amgciadev @tdonohue, retest this morning after a clean complete reinstall of Docker and it worked. I was able to respond to the copy request without entering any additionnal message. However, if no information in entered the email contains NULL text : |
I can verify this works. However, as @pilasou noted, the result is that the literal text "null" is now returned in the response email like this:
So, this PR works fine. But, a minor fix to the backend is needed to handle the case where this message is not specified. I'm going to merge this, and create a tiny PR to fix the backend issue. It's literally just a check to handle a possible "null" value for this optional message field. |
The Merging this as it is at +3 (I vote +1 as well). |
Successfully created backport PR for |
Thanks all! |
Message is optional: remove req in [disabled]
References
Add references/links to any related issues or PRs. These may include:
Description
It removes the check for an empty message for the submit button [disabled] attribute
Instructions for Reviewers
Attempt to grant a request and confirm that now the message is optional
List of changes in this PR:
Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You need not complete this checklist prior to creating your PR (draft PRs are always welcome). If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
yarn lint
yarn check-circ-deps
)package.json
), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.