fix is_active student flag and apply it in all pages
Deploy to Shared Hosting / Shared hosting deploy (push) Failing after 48s
Tests / PHPUnit (push) Successful in 1m17s

This commit is contained in:
root
2026-08-20 12:59:59 -04:00
parent 0a31aa1393
commit bfa343b69f
57 changed files with 820 additions and 240 deletions
+2 -2
View File
@@ -217,7 +217,7 @@ class ScoreController extends BaseController
$classSectionName = $csRow['class_section_name'] ?? '';
log_message('debug', "ScoreController::index teacher {$teacherId} classSection {$classSectionId} semester {$effectiveSemester}");
$studentTeacherInfo = $this->studentModel->getStudentInfoByClassSectionId(
$studentTeacherInfo = $this->studentModel->getActiveStudentInfoByClassSectionId(
$classSectionId,
$effectiveSemester,
$effectiveSchoolYear
@@ -1179,7 +1179,7 @@ class ScoreController extends BaseController
// Ensure semester_scores are re-calculated when midterm/final exams change.
if (in_array(strtolower($table), ['final_exam', 'midterm_exam'], true) && $this->semesterScoreService !== null) {
try {
$studentTeacherInfo = $this->studentModel->getStudentInfoByClassSectionId(
$studentTeacherInfo = $this->studentModel->getActiveStudentInfoByClassSectionId(
$classSectionId,
$semester,
$this->schoolYear