From a8d68cb5e683e57c3aa20ed60020d2490a6cdd15 Mon Sep 17 00:00:00 2001 From: Marco Villeneuve Date: Wed, 22 Jan 2025 11:10:24 -0800 Subject: [PATCH] Small change to set years in ELL to 0. --- .../api/service/v1/ValidationRulesService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/src/main/java/ca/bc/gov/educ/studentdatacollection/api/service/v1/ValidationRulesService.java b/api/src/main/java/ca/bc/gov/educ/studentdatacollection/api/service/v1/ValidationRulesService.java index 91b67d735..296ed9e2a 100644 --- a/api/src/main/java/ca/bc/gov/educ/studentdatacollection/api/service/v1/ValidationRulesService.java +++ b/api/src/main/java/ca/bc/gov/educ/studentdatacollection/api/service/v1/ValidationRulesService.java @@ -154,6 +154,8 @@ public void setStudentYearsInEll(SdcSchoolCollectionStudentEntity student){ log.debug("Student years in ELL found for SDC student {} :: is {}", student.getSdcSchoolCollectionStudentID(), yearsInEll); if(yearsInEll.isPresent()){ student.setYearsInEll(yearsInEll.get().getYearsInEll()); + }else{ + student.setYearsInEll(0); } } }