RM-4542: record name doesn't default to file name

This commit is contained in:
Kristijan Conkas
2016-12-12 11:20:54 +00:00
parent 08cc908c5b
commit d554f9fdd2
2 changed files with 32 additions and 0 deletions

View File

@@ -178,6 +178,7 @@ public class FilePlanComponentAPI extends RestAPI<FilePlanComponentAPI>
.auth().basic(currentUser.getUsername(), currentUser.getPassword())
.multiPart("nodeBodyCreate", toJson(electronicRecordModel), ContentType.JSON.name())
.multiPart("filedata", recordContent, ContentType.BINARY.name())
.multiPart("name", electronicRecordModel.getName() != null ? electronicRecordModel.getName() : recordContent.getName())
.when()
.post("fileplan-components/{fileplanComponentId}/children?{parameters}", parentId, getParameters())
.andReturn();