Skip to content
Snippets Groups Projects
Commit bb84b6a0 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #11275 TIME 0:10 fix contact fusion in model

parent fb98f23f
No related branches found
No related tags found
No related merge requests found
...@@ -179,8 +179,13 @@ export class AttachmentCreateComponent implements OnInit { ...@@ -179,8 +179,13 @@ export class AttachmentCreateComponent implements OnInit {
setDatasViewer(i: number) { setDatasViewer(i: number) {
let datas: any = {}; let datas: any = {};
Object.keys(this.attachments[i]).forEach(element => { Object.keys(this.attachments[i]).forEach(element => {
if (['title', 'validationDate'].indexOf(element) > -1) { if (['title', 'validationDate', 'recipient'].indexOf(element) > -1) {
datas['attachment_' + element] = this.attachments[i][element].value; 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; datas['resId'] = this.data.resIdMaster;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment