fix is_new issue with enrollment fixes
This commit is contained in:
@@ -9,7 +9,7 @@ if (!function_exists('student_normalized_enrollment_status')) {
|
||||
$status = 'withdrawn';
|
||||
}
|
||||
|
||||
if ($status === '' && $studentId > 0) {
|
||||
if ($studentId > 0) {
|
||||
$schoolYear = trim((string)($schoolYear ?? ''));
|
||||
if ($schoolYear === '') {
|
||||
try {
|
||||
@@ -44,7 +44,9 @@ if (!function_exists('student_normalized_enrollment_status')) {
|
||||
}
|
||||
}
|
||||
}
|
||||
$status = $statusCache[$cacheKey];
|
||||
if (($statusCache[$cacheKey] ?? '') !== '') {
|
||||
$status = $statusCache[$cacheKey];
|
||||
}
|
||||
}
|
||||
|
||||
return $status;
|
||||
|
||||
Reference in New Issue
Block a user