From f943cab71679ee625873db8c13e4a5511cd75770 Mon Sep 17 00:00:00 2001 From: Ivan Kuchin Date: Mon, 19 Feb 2024 14:59:27 +0100 Subject: [PATCH] use "current date" of the calendar instead of first day displayed by the calendar Current date will not changed when switching the view between month and week, so will fix [50615](https://community.openproject.org/projects/openproject/work_packages/50615/activity) --- .../app/features/calendar/op-work-packages-calendar.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/features/calendar/op-work-packages-calendar.service.ts b/frontend/src/app/features/calendar/op-work-packages-calendar.service.ts index 67c9b35811c4..750153b6bc40 100644 --- a/frontend/src/app/features/calendar/op-work-packages-calendar.service.ts +++ b/frontend/src/app/features/calendar/op-work-packages-calendar.service.ts @@ -417,7 +417,7 @@ export class OpWorkPackagesCalendarService extends UntilDestroyedMixin { void this.$state.go( '.', { - cdate: this.timezoneService.formattedISODate(dates.view.currentStart), + cdate: this.timezoneService.formattedISODate(dates.view.calendar.getDate()), // v6.beta3 fails to have type on the ViewAPI cview: (dates.view as unknown as { type:string }).type, },