fix is_active student flag logic and make moving with enrollment status
Deploy to Shared Hosting / Shared hosting deploy (push) Failing after 47s
Tests / PHPUnit (push) Successful in 1m16s

This commit is contained in:
root
2026-08-20 03:11:37 -04:00
parent 6f722795c5
commit 0a31aa1393
20 changed files with 588 additions and 489 deletions
+3
View File
@@ -176,6 +176,7 @@ class StudentModel extends Model
->join('student_class', 'student_class.student_id = students.id', 'left')
->join('classSection', 'student_class.class_section_id = classSection.class_section_id', 'left')
->where('student_class.school_year', $schoolYear)
->where('students.is_active', 1)
->get()
->getResultArray();
}
@@ -200,6 +201,7 @@ class StudentModel extends Model
->join('teacher_class', 'student_class.class_section_id = teacher_class.class_section_id', 'left')
->join('classSection', 'student_class.class_section_id = classSection.class_section_id', 'left')
->where('teacher_class.teacher_id', $teacherId)
->where('students.is_active', 1)
->get()
->getResultArray();
}
@@ -215,6 +217,7 @@ class StudentModel extends Model
return $this->db->table('students')
->join('student_class', 'students.id = student_class.student_id', 'left')
->where('student_class.class_section_id', $classSectionId)
->where('students.is_active', 1)
->select('students.*, student_class.class_section_id')
->get()
->getResultArray();