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

FEAT #15343 TIME 0:10 set default objet

(cherry picked from commit 05262bc4)
parent c1e75d85
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,7 @@ export class AttachmentCreateComponent implements OnInit {
indexTab: number = 0;
resourceSubject: string = '';
resourceContacts: any[] = [];
selectedContact = new FormControl();
......@@ -125,6 +126,7 @@ export class AttachmentCreateComponent implements OnInit {
}
}
this.resourceSubject = data.subject;
this.attachments.push({
title: new FormControl({ value: data.subject, disabled: false }, [Validators.required]),
recipient: new FormControl({ value: contact, disabled: false }),
......@@ -387,7 +389,7 @@ export class AttachmentCreateComponent implements OnInit {
newPj() {
this.attachments.push({
title: new FormControl({ value: '', disabled: false }, [Validators.required]),
title: new FormControl({ value: this.resourceSubject, disabled: false }, [Validators.required]),
recipient: new FormControl({ value: !this.functions.empty(this.resourceContacts[this.attachments.length]) ? [{ id: this.resourceContacts[this.attachments.length].id, type: this.resourceContacts[this.attachments.length].type }] : null, disabled: false }),
type: new FormControl({ value: 'response_project', disabled: false }, [Validators.required]),
validationDate: new FormControl({ value: null, disabled: false }),
......
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