From 1f0fde8bc52839bab575f960ee08f971f244aa2d Mon Sep 17 00:00:00 2001 From: Matti Lupari Date: Wed, 23 Oct 2024 19:50:05 +0300 Subject: [PATCH] CSCEXAM-1379 Fix exam auto-saving problem - also get rid of one useless error note on UI when canceling an external reservation --- app/system/actors/ExamAutoSaverActor.scala | 1 + ui/src/app/calendar/calendar.component.ts | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/app/system/actors/ExamAutoSaverActor.scala b/app/system/actors/ExamAutoSaverActor.scala index b5345a7c8..6353a4b54 100644 --- a/app/system/actors/ExamAutoSaverActor.scala +++ b/app/system/actors/ExamAutoSaverActor.scala @@ -94,6 +94,7 @@ class ExamAutoSaverActor @Inject (private val composer: EmailComposer, private v participation.setDeadline(deadline) participation.save() logger.info(s"Setting exam ${exam.getId} state to REVIEW") + exam.setState(Exam.State.REVIEW) exam.save() if exam.isPrivate then // Notify teachers diff --git a/ui/src/app/calendar/calendar.component.ts b/ui/src/app/calendar/calendar.component.ts index a067beb0b..017213d70 100644 --- a/ui/src/app/calendar/calendar.component.ts +++ b/ui/src/app/calendar/calendar.component.ts @@ -176,7 +176,6 @@ export class CalendarComponent implements OnInit { isCollaborative: this.isCollaborative, }, }), - error: (err) => this.toast.error(err), }); }