Merge pull request 'single group fix' (#54) from single0-group-fix into master
Reviewed-on: http://git.plannaplan.pl/filipizydorczyk/backend/pulls/54
This commit is contained in:
commit
cf4d8c05a2
@ -108,8 +108,12 @@ public class AssignmentResponse {
|
|||||||
this.id = course.getId();
|
this.id = course.getId();
|
||||||
this.name = course.getName();
|
this.name = course.getName();
|
||||||
this.symbol = course.getSymbol();
|
this.symbol = course.getSymbol();
|
||||||
this.classes = new GroupWithCapacityResponse(classes, ammounts.get(classes.getGroup().getId()));
|
this.classes = classes != null
|
||||||
this.lecture = new GroupWithCapacityResponse(lecture, ammounts.get(lecture.getGroup().getId()));
|
? new GroupWithCapacityResponse(classes, ammounts.get(classes.getGroup().getId()))
|
||||||
|
: null;
|
||||||
|
this.lecture = lecture != null
|
||||||
|
? new GroupWithCapacityResponse(lecture, ammounts.get(lecture.getGroup().getId()))
|
||||||
|
: null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -121,8 +125,8 @@ public class AssignmentResponse {
|
|||||||
this.id = course.getId();
|
this.id = course.getId();
|
||||||
this.name = course.getName();
|
this.name = course.getName();
|
||||||
this.symbol = course.getSymbol();
|
this.symbol = course.getSymbol();
|
||||||
this.classes = new GroupWithCapacityResponse(classes);
|
this.classes = classes != null ? new GroupWithCapacityResponse(classes) : null;
|
||||||
this.lecture = new GroupWithCapacityResponse(lecture);
|
this.lecture = lecture != null ? new GroupWithCapacityResponse(lecture) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user