Closed patrickakk closed 3 months ago
Note: I've converted the date to a valid format, so the NaN disappeared now. The bug remains.
Proposed solution: Require JavaScript for the course add and edit page.
Waiting for bug report.
No bug report received.
New solution: Add server-side start date validation
All the start dates provided by the user will be checked, one by one, on the server side. This makes it independent from JavaScript or other browser or user dependent items.
Note: default validation by the framework wasn't possible since this field is an array converted to and stored as a string (legacy).
@IvdL22 @PixlTracer The validation has been implemented. Visible items for the users are:
It will be available in the test instance tomorrow. (Not today).
Can you change the label to Done if you agree with the solution?
great, thank you @patrickakk
Implemented in 2024-05
Al tough the JavaScript pop-up does validation, it seems to be possible to enter an invalid date, when entering a new course, see screenshot.![image](https://github.com/acdh-oeaw/dhcr-main/assets/97846194/3ecafd44-7c6c-4542-b9b3-e3b67cbc667d)