Skip to content

Commit 276082a

Browse files
committed
MAGETWO-90313: Import existing customer with only three columns will override customer group_id and store_id
1 parent 4ed0792 commit 276082a

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/CustomerImportExport/Model/Import

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ protected function _prepareDataForUpdate(array $rowData)
423423
// create
424424
$entityRow['group_id'] = empty($rowData['group_id']) ? self::DEFAULT_GROUP_ID : $rowData['group_id'];
425425
$entityRow['store_id'] = empty($rowData[self::COLUMN_STORE])
426-
? 0 : $this->_storeCodeToId[$rowData[self::COLUMN_STORE]];
426+
? \Magento\Store\Model\Store::DEFAULT_STORE_ID : $this->_storeCodeToId[$rowData[self::COLUMN_STORE]];
427427
$entityRow['created_at'] = $createdAt->format(\Magento\Framework\Stdlib\DateTime::DATETIME_PHP_FORMAT);
428428
$entityRow['updated_at'] = $now->format(\Magento\Framework\Stdlib\DateTime::DATETIME_PHP_FORMAT);
429429
$entityRow['website_id'] = $this->_websiteCodeToId[$rowData[self::COLUMN_WEBSITE]];

0 commit comments

Comments
 (0)