This commit is contained in:
@@ -57,6 +57,7 @@ class TeacherController extends BaseController
|
||||
// Retrieve the configuration values
|
||||
$this->semester = $this->configModel->getConfig('semester');
|
||||
$this->schoolYear = $this->configModel->getConfig('school_year');
|
||||
$this->schoolYear = $this->currentSchoolYearName((string) ($this->schoolYear ?? ''));
|
||||
}
|
||||
|
||||
|
||||
@@ -123,7 +124,7 @@ class TeacherController extends BaseController
|
||||
|
||||
if (!empty($classSectionIds)) {
|
||||
// 1) Fetch all students for the selected class sections
|
||||
$students = $this->studentClassModel->getStudentsByClassSectionIds($classSectionIds);
|
||||
$students = $this->studentClassModel->getStudentsByClassSectionIds($classSectionIds, (string) $this->schoolYear);
|
||||
|
||||
if (!empty($students)) {
|
||||
// 2) Collect unique student IDs
|
||||
@@ -344,7 +345,6 @@ class TeacherController extends BaseController
|
||||
'section_id' => $sectionId,
|
||||
'class_section_name' => $classNames[$sectionId] ?? 'N/A',
|
||||
'role' => $role,
|
||||
'semester' => (string)($assign['semester'] ?? $this->semester ?? ''),
|
||||
'school_year' => (string)($assign['school_year'] ?? $schoolYear),
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user