Client side validation for course creation
Summary
When creating a course certain fields in the form can be left empty.
The corresponding method in the controller expects an @Valid
Course.
There are corresponding annotations on the Course, that say code and name are required.
Steps to reproduce
- Go to http://localhost:8081/course/create as an admin.
- Hit create new course.
- Shit hits the fan
Possible Fix
The template for course create located here Needs to have the corresponding input fields marked as required. Info on required can be found here
Edited by Liam Clark