Skip to content
Snippets Groups Projects
Verified Commit c64a4bf7 authored by Florian Azizian's avatar Florian Azizian
Browse files

FEAT #12091 TIME 0:15 label was null in autocompletion mail

parent e4c16234
No related branches found
No related tags found
No related merge requests found
......@@ -519,7 +519,11 @@ export class SendedResourcePageComponent implements OnInit {
data = data.filter((contact: any) => !this.functions.empty(contact.email) || contact.type === 'contactGroup').map((contact: any) => {
let label = '';
if (contact.type === 'user' || contact.type === 'contact') {
label = `${contact.firstname} ${contact.lastname}`;
if (!this.functions.empty(contact.firstname) || !this.functions.empty(contact.lastname)) {
label = contact.firstname + ' ' + contact.lastname;
} else {
label = contact.company;
}
} else if (contact.type === 'contactGroup') {
label = `${contact.firstname} ${contact.lastname}`;
} else {
......
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