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
+3 -2
View File
@@ -122,7 +122,7 @@ class MidtermController extends BaseController
true
);
$studentTeacherInfo = $this->studentModel->getStudentInfoByClassSectionId($classSectionId, $semester, $schoolYear);
$studentTeacherInfo = $this->studentModel->getActiveStudentInfoByClassSectionId($classSectionId, $semester, $schoolYear);
// Call the updateScoresForStudents method
try {
@@ -155,7 +155,7 @@ class MidtermController extends BaseController
session()->setFlashdata('status', 'Midterm exam scores updated successfully.');
$studentTeacherInfo = $this->studentModel->getStudentInfoByClassSectionId($classSectionId, $semester, $schoolYear);
$studentTeacherInfo = $this->studentModel->getActiveStudentInfoByClassSectionId($classSectionId, $semester, $schoolYear);
// Call the updateScoresForStudents method
try {
@@ -288,6 +288,7 @@ class MidtermController extends BaseController
// Join the "latest midterm per student" subquery, then the actual midterm row
->join('(' . $latestMidtermSub . ') ml', 'ml.student_id = s.id', 'left', false)
->join('midterm_exam me', 'me.id = ml.max_id', 'left')
->where('s.is_active', 1)
->orderBy('s.lastname', 'ASC')
->orderBy('s.firstname', 'ASC');