Skip to content

Commit

Permalink
Merge pull request #622 from bcgov/develop/alex-GRAD2-2522
Browse files Browse the repository at this point in the history
Bug Fix
  • Loading branch information
githubmamatha authored Feb 21, 2024
2 parents 94ebbfc + bc7e23a commit 2a063b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ public StudentOptionalProgram createStudentGradOptionalProgram(UUID studentID, S
BeanUtils.copyProperties(sourceObject, gradEnity, CREATE_USER, CREATE_DATE);
gradEnity.setOptionalProgramCompletionDate(sourceObject.getOptionalProgramCompletionDate());
StudentOptionalProgramEntity gradEnitySaved = gradStudentOptionalProgramRepository.save(gradEnity);
if(StringUtils.equalsIgnoreCase(careerProgramCode, "CP")) {
if(StringUtils.isNotBlank(careerProgramCode)) {
Optional<StudentCareerProgramEntity> optionalStudentCareerProgramEntity = gradStudentCareerProgramRepository.findByStudentIDAndCareerProgramCode(studentID, careerProgramCode);
if(!optionalStudentCareerProgramEntity.isPresent()) {
StudentCareerProgramEntity studentCareerProgramEntity = new StudentCareerProgramEntity();
Expand Down

0 comments on commit 2a063b6

Please sign in to comment.