fix parent and teacher pages to follow year filter
Tests / PHPUnit (push) Failing after 1m15s

This commit is contained in:
root
2026-07-15 20:03:36 -04:00
parent feb1b29a32
commit 5f27dccd0f
32 changed files with 582 additions and 364 deletions
@@ -46,9 +46,11 @@ class ScoreCommentController extends BaseController
public function saveComments()
{
$schoolYearContext = $this->resolveSchoolYearContext();
$this->assertSchoolYearWritable($schoolYearContext);
$comments = $this->request->getPost('comments');
$classSectionId = (int)($this->request->getPost('class_section_id') ?? session()->get('class_section_id') ?? 0);
$schoolYear = (string) ($this->request->getPost('school_year') ?? $this->schoolYear);
$schoolYear = $schoolYearContext->yearName();
$rawSelectedSemester = $this->request->getPost('selected_semester');
$normalizedSelected = $this->normalizeSemesterSelection($rawSelectedSemester);
if ($normalizedSelected !== '') {