Skip to content
Snippets Groups Projects
Commit e1756bbb authored by Isaac Evavold's avatar Isaac Evavold
Browse files

ROENROLL-1555 let course be moved to term even if term has not offered courses

parent 5781cda1
No related branches found
No related tags found
No related merge requests found
......@@ -133,11 +133,7 @@ export class CourseItemComponent implements OnInit {
const isCourseInPlannedCourses = this.plannedCourses.some(
course => course.courseId === this.course.courseId,
);
const courseNotOfferedInTerm = this.plannedCourses.some(
course =>
course.studentEnrollmentStatus === 'DOESNOTEXIST' ||
course.studentEnrollmentStatus === 'NOTOFFERED',
);
if (isCourseInPlannedCourses) {
this.dialog
.open(ConfirmDialogComponent, {
......@@ -152,25 +148,6 @@ export class CourseItemComponent implements OnInit {
return;
}
if (this.toActiveTerm && courseNotOfferedInTerm) {
const { short } = this.constants.subjectDescription(
this.course.subjectCode,
);
const catalogNum = this.course.catalogNumber;
const termDesc = toTermCode.description;
this.dialog
.open(ConfirmDialogComponent, {
data: {
title: `Can't add course to term`,
confirmText: 'OK',
dialogClass: 'alertDialog',
text: `${short} ${catalogNum} is not offered in ${termDesc}`,
},
})
.afterClosed();
return;
}
switch (this.type) {
case 'course': {
const id = this.course.id as number;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment