fix is_active student flag logic and make moving with enrollment status
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user