From 63418cb99a1c55af77299d9e2daa8e7d18bb15f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=B6ckelmann?= Date: Sun, 17 Mar 2024 08:28:02 +0100 Subject: [PATCH] Fix unshifted Schedules --- backend/src/main/java/core/entities/timemanager/Task.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/main/java/core/entities/timemanager/Task.java b/backend/src/main/java/core/entities/timemanager/Task.java index efe9fd8..52d38cd 100644 --- a/backend/src/main/java/core/entities/timemanager/Task.java +++ b/backend/src/main/java/core/entities/timemanager/Task.java @@ -73,6 +73,8 @@ public class Task { for(AbstractSchedule abstractSchedule : this.basicTaskSchedules) { AbstractSchedule clonedSchedule = abstractSchedule.cloneSchedule(); clonedSchedules.add(clonedSchedule); + clonedTask.getBasicTaskSchedules().clear(); + clonedTask.getBasicTaskSchedules().add(clonedSchedule); } Set clonedSubtasks = new HashSet<>();