Open downtownHippie opened 10 years ago
strange things are afoot at the Circle K...
currently when an instructor's department is changed the course list does not change. So when the instructor is saved they may still be teaching classes from their old department (unless actively cleared). when that instructor is edited again, the course list is relative to the new department and when they are saved the old courses are cleared. I believe when the I get the page to repost with courses relative to the newly selected department the old couses will be cleared when saved.
but maybe the controller should (no matter what) verify that courses being taught are offered by the instructor's department and clear any that are not.
open to interpretation: what happens when a instructor's department is changed. Maybe it shouldn't be changeable.
If it is changeable the instructor should be removed as department administrator if they are selected as such.
All courses taught by that instructor (available through their now old department) should be removed from the join table.
Just because someone isn't teaching a course doesn't mean enrollments would be removed, so don't touch that table.