Creating assignments in the gradebook now always ends in success—not a server error.
If a teacher accidentally checked both the "Midterm" and "Final" boxes when adding a regular assignment, the page would crash with a server error instead of showing a helpful message. That's now fixed.
The assignment form now catches this combination before it ever reaches the server, so you'll see a clear validation message right away. We also repaired a longstanding issue where the mutual-exclusion guard in the browser was silently broken—it just wasn't wired up correctly. Both the form and the browser now agree: an assignment can be one or the other, but not both.
Fixes and Improvements¶
- Fixed a 500 error when submitting the regular assignment form with both "Midterm" and "Final" checked simultaneously
- Activated the client-side mutual-exclusion guard for the Midterm and Final checkboxes (it was previously non-functional)
- Added server-side safety nets on all three assignment-creation paths in the gradebook so unexpected validation errors show a friendly message instead of crashing