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

FIX #14458 TIME 0:15 fix import csv

parent f43e6ceb
No related branches found
No related tags found
No related merge requests found
......@@ -309,10 +309,14 @@ export class ContactImportComponent implements OnInit {
if ((this.hasHeader && index > 0) || !this.hasHeader) {
const objContact = {};
this.contactColumns.forEach((key) => {
if (key.emptyValueMode && this.functionsService.empty(element[this.associatedColmuns[key.id]])) {
if (key.emptyValueMode && (element[this.associatedColmuns[key.id]] === undefined || this.functionsService.empty(element[this.associatedColmuns[key.id]]))) {
objContact[key.id] = false;
} else {
objContact[key.id] = element[this.associatedColmuns[key.id]].includes('\n') ? element[this.associatedColmuns[key.id]].split('\n') : element[this.associatedColmuns[key.id]];
if (element[this.associatedColmuns[key.id]] === undefined) {
objContact[key.id] = '';
} else {
objContact[key.id] = element[this.associatedColmuns[key.id]].includes('\n') ? element[this.associatedColmuns[key.id]].split('\n') : element[this.associatedColmuns[key.id]];
}
}
});
dataToSend.push(objContact);
......
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