update the new school year model
This commit is contained in:
@@ -138,7 +138,7 @@ class ClassProgressMetaService
|
||||
return $svc->getSchoolYearRange($schoolYear);
|
||||
}
|
||||
|
||||
public function curriculumOptions(?int $classId): array
|
||||
public function curriculumOptions(?int $classId, ?string $schoolYear = null): array
|
||||
{
|
||||
if (!$classId) {
|
||||
return [];
|
||||
@@ -146,7 +146,7 @@ class ClassProgressMetaService
|
||||
|
||||
$options = [];
|
||||
foreach ($this->subjectSections() as $slug => $section) {
|
||||
$options[$slug] = SubjectCurriculum::getOptionsForClass((int) $classId, (string) $slug);
|
||||
$options[$slug] = SubjectCurriculum::getOptionsForClass((int) $classId, (string) $slug, $schoolYear);
|
||||
}
|
||||
|
||||
return $options;
|
||||
|
||||
Reference in New Issue
Block a user