Skip to content

Commit 5164240

Browse files
author
Nikita Chubukov
committed
MC-15256: Exported customer without modification can not be imported
- Fix static test
1 parent 9cf6861 commit 5164240

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,8 +521,10 @@ protected function _importData()
521521
);
522522
} elseif ($this->getBehavior($rowData) == \Magento\ImportExport\Model\Import::BEHAVIOR_ADD_UPDATE) {
523523
$processedData = $this->_prepareDataForUpdate($rowData);
524+
// phpcs:disable Magento2.Performance.ForeachArrayMerge
524525
$entitiesToCreate = array_merge($entitiesToCreate, $processedData[self::ENTITIES_TO_CREATE_KEY]);
525526
$entitiesToUpdate = array_merge($entitiesToUpdate, $processedData[self::ENTITIES_TO_UPDATE_KEY]);
527+
// phpcs:enable
526528
foreach ($processedData[self::ATTRIBUTES_TO_SAVE_KEY] as $tableName => $customerAttributes) {
527529
if (!isset($attributesToSave[$tableName])) {
528530
$attributesToSave[$tableName] = [];

0 commit comments

Comments
 (0)