Loris
Loris copied to clipboard
[create_timepoint] Add error swal
Brief summary of changes
In the Create Timepoint module, if there was a PHP error upon submission, the entered data would not save without any error message. This adds an error swal if a PHP error occurs
Testing instructions (if applicable)
- Revert the changes made in this PR to cause a PHP error
- In the Create Timepoint module of any candidate, create a new valid visit
- Submit and verify that the error swal appears
- Restore the changes in the create_timepoint class (such that there are no PHP errors) and check that new visits can be created
Link(s) to related issue(s)
- Resolves #9358
I'm trying to test this but I'm still getting a success swal.
In conclusion, when we got a PHP error, the swal is not showing it so the PR still need work since this was the goal