Skip to content

Commit 8bea285

Browse files
committed
Set fallback values for email and _website columns to avoid 'undefined index' error in CustomerComposite.php
CLA will be signed
1 parent f710f9b commit 8bea285

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)