diff --git a/core/src/main/java/org/opencdmp/filetransformer/docx/service/wordfiletransformer/WordFileTransformerService.java b/core/src/main/java/org/opencdmp/filetransformer/docx/service/wordfiletransformer/WordFileTransformerService.java index 84f1159..e7225a8 100644 --- a/core/src/main/java/org/opencdmp/filetransformer/docx/service/wordfiletransformer/WordFileTransformerService.java +++ b/core/src/main/java/org/opencdmp/filetransformer/docx/service/wordfiletransformer/WordFileTransformerService.java @@ -420,16 +420,15 @@ public class WordFileTransformerService implements FileTransformerClient { List grants = this.getReferenceModelOfTypeCode(dmpModel, this.wordFileTransformerServiceProperties.getGrantReferenceCode(), null); String fileName = null; if (dmpModel.getLabel() != null){ - return dmpModel.getLabel(); + return dmpModel.getLabel() + extension; } if (!grants.isEmpty() && grants.getFirst().getLabel() != null) { fileName = "DMP_" + grants.getFirst().getLabel(); fileName += "_" + dmpModel.getVersion(); - return fileName + extension; } - return fileName; + return fileName + extension; } private byte[] buildDescriptionWordDocument(DescriptionModel descriptionModel) throws IOException {