From ab7dc34d7001072967a20b1d8cb2bcf0fb0ae3ef Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 23 Aug 2026 19:00:33 +0000 Subject: [PATCH] Use selected dashboard year for attendance/grade report groups report_group.year was hardcoded to today's computed Hebrew year, ignoring the year selected via the dashboard year switcher. Use defaultYearFilter.year instead, matching lesson lookup in LessonSelector.jsx which already respects it. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01UUhaoVyaHXvVCE6tGRF5MM --- client/src/reports/InLessonReport.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/reports/InLessonReport.jsx b/client/src/reports/InLessonReport.jsx index ab680d23..30c43591 100644 --- a/client/src/reports/InLessonReport.jsx +++ b/client/src/reports/InLessonReport.jsx @@ -9,7 +9,7 @@ import { useIsLessonSignature, } from '../utils/appPermissions'; import { InLessonReport } from './in-lesson-report'; -import { getCurrentHebrewYear } from '@shared/utils/yearFilter'; +import { defaultYearFilter } from '@shared/utils/yearFilter'; import { useObjectStore } from 'src/utils/storeUtil'; const entityConfig = [ @@ -73,7 +73,7 @@ export default ({ gradeMode = false }) => { teacherReferenceId: lesson.teacherReferenceId, lessonReferenceId: lesson.id, klassReferenceId: lesson.klassReferenceIds[0], - year: getCurrentHebrewYear(), + year: defaultYearFilter.year, }; const reportGroupResponse = await dataProvider.create('report_group', {