Skip to content

Commit a5fad04

Browse files
author
Stanislav Idolov
authored
ENGCOM-3217: Set fallback values for email and _website columns to avoid 'undefined index' error in CustomerComposite.php #18679
2 parents 6f7cf07 + f2fccba commit a5fad04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/CustomerImportExport/Model/Import/CustomerComposite.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,8 @@ public function validateData()
299299
$rows = [];
300300
foreach ($source as $row) {
301301
$rows[] = [
302-
Address::COLUMN_EMAIL => $row[Customer::COLUMN_EMAIL],
303-
Address::COLUMN_WEBSITE => $row[Customer::COLUMN_WEBSITE],
302+
Address::COLUMN_EMAIL => $row[Customer::COLUMN_EMAIL] ?? null,
303+
Address::COLUMN_WEBSITE => $row[Customer::COLUMN_WEBSITE] ?? null
304304
];
305305
}
306306
$source->rewind();

0 commit comments

Comments
 (0)