Skip to content

Commit 5ec1933

Browse files
committed
MAGETWO-44965: Can't import customer addresses if there is 2+ address entries for 1 customer
1 parent 9c1711b commit 5ec1933

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,7 @@ protected function _prepareDataForUpdate(array $rowData)
543543
}
544544

545545
// let's try to find region ID
546+
$entityRow['region_id'] = null;
546547
if (!empty($rowData[self::COLUMN_REGION])) {
547548
$countryNormalized = strtolower($rowData[self::COLUMN_COUNTRY_ID]);
548549
$regionNormalized = strtolower($rowData[self::COLUMN_REGION]);

dev/tests/integration/testsuite/Magento/CustomerImportExport/Model/Import/_files/address_import_update.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
"admin","BetsyParker@example.com",1,,,"US",,"Katy","Parker","T.",19107,,,,"1079 Rocky Road",,"215-629-9720",,,,,,,1
33
"admin","BetsyParker@example.com",3,"Phoenix",,"US",,"Brad","Brown","H.",85034,,"Arizona",4,"4225 Martha Street",,"928-707-1577",,,,,,1,
44
"admin","BetsyParker@example.com",,"Tallahassee",,"US",,"William ","Compton","M.",32301,,"Florida",18,"1973 Drainer Avenue",,"850-590-7403",,,,,,,
5+
"admin","BetsyParker@example.com",,"Tallahassee",,"UA",,"An ","Compton","M.",32301,,,18,"1973 Drainer Avenue",,"850-590-7403",,,,,,,

0 commit comments

Comments
 (0)