From a201bcc58170110946396f658279fae9cac5f53a Mon Sep 17 00:00:00 2001 From: Filip Izydorczyk Date: Fri, 22 Jan 2021 16:46:53 +0100 Subject: [PATCH] fix --- .../com/plannaplan/responses/models/AssignmentResponse.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/restservice/src/main/java/com/plannaplan/responses/models/AssignmentResponse.java b/restservice/src/main/java/com/plannaplan/responses/models/AssignmentResponse.java index b20e2a1..8126bc5 100755 --- a/restservice/src/main/java/com/plannaplan/responses/models/AssignmentResponse.java +++ b/restservice/src/main/java/com/plannaplan/responses/models/AssignmentResponse.java @@ -95,6 +95,7 @@ public class AssignmentResponse { * places */ public AssignmentResponse(Course course, Assignment lecture, Assignment classes, HashMap ammounts) { + this.id = course.getId(); this.name = course.getName(); this.classes = new GroupWithCapacityResponse(classes, ammounts.get(classes.getGroup().getId())); this.lecture = new GroupWithCapacityResponse(lecture, ammounts.get(lecture.getGroup().getId())); @@ -106,6 +107,7 @@ public class AssignmentResponse { * @param classes class Groups entity */ public AssignmentResponse(Course course, Assignment lecture, Assignment classes) { + this.id = course.getId(); this.name = course.getName(); this.classes = new GroupWithCapacityResponse(classes); this.lecture = new GroupWithCapacityResponse(lecture);