diff --git a/src/frontend/app/attachments/attachment-create/attachment-create.component.ts b/src/frontend/app/attachments/attachment-create/attachment-create.component.ts
index 5aac8b9bb0392e8d9d2cfa297545ee087b36fcbf..1362be1efc3d1f131f03a76faa9575503db30b0c 100644
--- a/src/frontend/app/attachments/attachment-create/attachment-create.component.ts
+++ b/src/frontend/app/attachments/attachment-create/attachment-create.component.ts
@@ -179,8 +179,13 @@ export class AttachmentCreateComponent implements OnInit {
     setDatasViewer(i: number) {
         let datas: any = {};
         Object.keys(this.attachments[i]).forEach(element => {
-            if (['title', 'validationDate'].indexOf(element) > -1) {
-                datas['attachment_' + element] = this.attachments[i][element].value;
+            if (['title', 'validationDate', 'recipient'].indexOf(element) > -1) {
+                if (element === 'recipient') {
+                    datas['recipientId'] = this.attachments[i][element].value[0].id
+                    datas['recipientType'] = this.attachments[i][element].value[0].type
+                } else {
+                    datas['attachment_' + element] = this.attachments[i][element].value;
+                }
             }
         });
         datas['resId'] = this.data.resIdMaster;