fix(students): ensure accurate active-year student loading and navigate to all tab on search
This commit is contained in:
1 parent
4f20a67fda
commit
3e2a52770c
4 files changed
+96
-26
No files matched your search
@@ -253,7 +253,7 @@ exports.getAllStudents = (req, res) => {
|
||||
${filterYearRange ? 'AND ay_inner.year_range = ?' : ''}
|
||||
ORDER BY e.grade_level DESC, ay_inner.year_range DESC, e.id DESC LIMIT 1
|
||||
)
|
||||
JOIN sections sec ON sec.id = e_latest.section_id
|
||||
LEFT JOIN sections sec ON sec.id = e_latest.section_id
|
||||
JOIN academic_years ay ON ay.id = e_latest.academic_year_id`;
|
||||
if (filterYearRange) {
|
||||
enrollJoinParams.push(filterYearRange);
|
||||
|
||||
Reference in new issue
Block a user