This commit is contained in:
@@ -164,8 +164,7 @@ class ParentController extends BaseController
|
||||
return redirect()->back()->with('error', 'Parent session not found.');
|
||||
}
|
||||
|
||||
// Get current school year from config
|
||||
$currentSchoolYear = $this->configModel->getConfig('school_year');
|
||||
$currentSchoolYear = $this->currentSchoolYearName((string) ($this->schoolYear ?? ''));
|
||||
|
||||
// Get selected school year (no semester filter on parent view)
|
||||
$selectedYear = $this->request->getVar('school_year') ?? $currentSchoolYear;
|
||||
@@ -1784,7 +1783,7 @@ $existing = $this->studentModel
|
||||
|
||||
public function parentEventPage()
|
||||
{
|
||||
$schoolYear = session()->get('school_year');
|
||||
$schoolYear = $this->currentSchoolYearName((string) ($this->schoolYear ?? ''));
|
||||
$semester = session()->get('semester');
|
||||
$parentId = session()->get('user_id');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user