Skip to content

Commit c32febf

Browse files
Merge pull request #120 from bcgov/fix/student-course-deletion
Courses with null course level not being deleted
2 parents b70e04b + 8eb8b7d commit c32febf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

api/src/main/java/ca/bc/gov/educ/api/pen/replication/service/StudentCourseUpdateService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ private void setCourseCodeAndLevel(TraxStudentCourseEntity traxStudentCourseEnti
111111
traxStudentCourseEntity.getStudXcrseId().setCourseLevel(StringUtils.trimToNull(course.getExternalCode().substring(5)));
112112
}else{
113113
traxStudentCourseEntity.getStudXcrseId().setCourseCode(StringUtils.trimToNull(course.getExternalCode()));
114+
traxStudentCourseEntity.getStudXcrseId().setCourseLevel(" ");
114115
}
115116
}else{
116117
log.info("No course was found for ID {} :: this should not have happened", courseID);

0 commit comments

Comments
 (0)