Description
The program creation flow (/manage/newprogram) allows submission of invalid registration date ranges without any validation. Specifically, it is possible to set a registration start date that is later than the corresponding end date. These invalid values are then persisted in the system via the Permission model.
Steps to Reproduce
- Navitage to /manage/newprogram
- Fill the form with the following values:
teacher_reg_start: March 31, 2026
teacher_reg_end: March 23, 2026 (earlier than start)
- submit the form
Expected Behavior
- The form should validate that start date < end date
- Student registration should not start before teacher registration ends (optional constraint)
- The system should display validation errors and prevent submission.
Actual Behavior
- The form accepts invalid date ranges.
- The system saves these values into the Permission model.
Screenshots
Operating System
Windows 11
Browser
Chrome
Additional Context
No response