Skip to content

Commit f2fccba

Browse files
ENGCOM-3217: Set fallback values for email and _website columns to avoid 'undefined index' error in CustomerComposite.php #18679
- Merge Pull Request #18679 from TomashKhamlai/magento2:fix-undefined-index-in-customer-composite-php - Merged commits: 1. 8bea285
2 parents 5916c5a + 8bea285 commit f2fccba

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)