This commit is contained in:
@@ -35,8 +35,11 @@ class FlagController extends Controller
|
||||
$grades = [];
|
||||
|
||||
// Retrieve flags and class sections that currently have active students
|
||||
$flags = $currentFlagModel->findAll();
|
||||
$schoolYear = $configModel->getConfig('school_year');
|
||||
if ((string)$schoolYear !== '' && $this->db->fieldExists('school_year', 'current_flag')) {
|
||||
$currentFlagModel->where('school_year', (string)$schoolYear);
|
||||
}
|
||||
$flags = $currentFlagModel->findAll();
|
||||
$studentCounts = $studentClassModel->getStudentCountsBySection($schoolYear);
|
||||
$classSections = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user