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

FEAT #11275 TIME 0:10 fix contact set to null

parent a949fff9
No related branches found
No related tags found
No related merge requests found
......@@ -73,15 +73,19 @@ export class AttachmentPageComponent implements OnInit {
exhaustMap(() => this.http.get("../../rest/attachments/" + this.data.resId)),
tap((data: any) => {
//this.attachment = data;
let contact: any = null;
if ((this.privilegeService.hasCurrentUserPrivilege('manage_attachments') || this.headerService.user.id === data.typist) && data.status !== 'SIGN') {
this.editMode = true;
}
const contact: any = [{
id: data.recipientId,
type: data.recipientType
}];
if (data.recipientId !== null) {
contact = [{
id: data.recipientId,
type: data.recipientType
}];
}
this.attachment = {
typist: new FormControl({ value: data.typist, disabled: true }, [Validators.required]),
......
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