-
Notifications
You must be signed in to change notification settings - Fork 188
Closed
Labels
Category: BugPR or issue that aims to report or fix a bugPR or issue that aims to report or fix a bug
Description
Describe the bug
This is not necessarily a bug, but a request to strengthen the validation of the candidate_consent_rel data. Currently, a user is able to withdraw consent with a date that is earlier than the date of given consent. Theoretically, the date of withdrawal should always be later than the date of given consent.
To Reproduce
- Go to candidate_parameters module
- Click on Consent tab
- Update a consent to 'Yes', provide today's date, and Save. Then, withdraw the consent by changing the response to 'No', and provide yesterday's date as the Date of Withdrawal. Save changes.
- You will see that no error is thrown.
What did you expect to happen?
The front-end AND back-end should validate that if consent is being withdrawn, then the Date of Withdrawal being submitted is later than the Date of Consent currently in the database.
Lack of validation first reported here #6044
Metadata
Metadata
Assignees
Labels
Category: BugPR or issue that aims to report or fix a bugPR or issue that aims to report or fix a bug