Commit a44e9257 authored by Enriko Käsper's avatar Enriko Käsper
Browse files

Merge remote-tracking branch 'origin/develop' into develop

parents 227570d3 e02e59f7
......@@ -17,12 +17,7 @@ public enum FileObjectType {
this.displayName = displayName;
}
@Override
public String toString() {
return displayName;
}
public static FileObjectType valueByDisplayName(String displayName) throws IllegalArgumentException {
public static FileObjectType valueByDisplayName(String displayName) {
for (FileObjectType ot : FileObjectType.values()) {
if (ot.displayName.equalsIgnoreCase(displayName)) {
return ot;
......@@ -31,4 +26,9 @@ public enum FileObjectType {
throw new IllegalArgumentException();
}
@Override
public String toString() {
return displayName;
}
}
......@@ -53,7 +53,7 @@ public class RiskAssessmentController extends TeisBaseController {
public RiskAssessmentPublicDto copy(@PathVariable UUID id, @RequestBody CopyRiskAssessmentDto dto,
@ApiIgnore RequestMetaDTO requestMetaDTO) {
CopyRiskAssessmentPublicRequest request = new CopyRiskAssessmentPublicRequest();
dto.getRiskAssessment().setId(id);
dto.setRiskAssessment(RiskAssessmentPublicDto.builder().id(id).build());
request.setPayload(dto, requestMetaDTO);
return service.copy(request);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment