Skip to content

Commit

Permalink
fix bug where sections with no meeting time cannot be deselected
Browse files Browse the repository at this point in the history
  • Loading branch information
dxue2012 committed Apr 6, 2016
1 parent fff14ab commit 11e6d75
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion course_selection/static/js/models/ScheduleManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,12 @@ class ScheduleManager {
}
} else {
if (Utils.isInList(section.id, sectionIds)) {
this.enrollSection(section);
// don't enroll if the section
// 1. doesn't having meeting times
// 2. isn't the only section available for that type
if (this._isTheOnlySectionOfType(course, section) || section.has_meetings) {
this.enrollSection(section);
}
}
}
}
Expand Down

0 comments on commit 11e6d75

Please sign in to comment.