Skip to content

Commit 6a49a08

Browse files
committed
disable_auto_group condition check
1 parent a13b11d commit 6a49a08

File tree

1 file changed

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

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
namespace Magento\CustomerImportExport\Model\Import;
99

1010
use Magento\Customer\Api\Data\CustomerInterface;
11-
use Magento\ImportExport\Model\Import;
12-
use Magento\ImportExport\Model\Import\ErrorProcessing\ProcessingErrorAggregatorInterface;
13-
use Magento\ImportExport\Model\Import\AbstractSource;
1411
use Magento\Customer\Model\Indexer\Processor;
1512
use Magento\Framework\App\ObjectManager;
13+
use Magento\ImportExport\Model\Import;
14+
use Magento\ImportExport\Model\Import\AbstractSource;
15+
use Magento\ImportExport\Model\Import\ErrorProcessing\ProcessingErrorAggregatorInterface;
1616

1717
/**
1818
* Customer entity import
@@ -491,7 +491,9 @@ protected function _prepareDataForUpdate(array $rowData)
491491
} else {
492492
$entityRow['store_id'] = $this->getCustomerStoreId($emailInLowercase, $rowData[self::COLUMN_WEBSITE]);
493493
}
494-
$entityRow[self::COLUMN_DISABLE_AUTO_GROUP_CHANGE] = $rowData[self::COLUMN_DISABLE_AUTO_GROUP_CHANGE];
494+
if (!empty($rowData[self::COLUMN_DISABLE_AUTO_GROUP_CHANGE])) {
495+
$entityRow[self::COLUMN_DISABLE_AUTO_GROUP_CHANGE] = $rowData[self::COLUMN_DISABLE_AUTO_GROUP_CHANGE];
496+
}
495497
$entitiesToUpdate[] = $entityRow;
496498
}
497499

0 commit comments

Comments
 (0)