Skip to content

Commit 4d7c93c

Browse files
committed
Merge remote-tracking branch 'sprank/issue-36409' into AC-7039
2 parents 3bf511a + 5b55f75 commit 4d7c93c

File tree

1 file changed

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

1 file changed

+9
-3
lines changed

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

Lines changed: 9 additions & 3 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
@@ -41,6 +41,8 @@ class Customer extends AbstractCustomer
4141

4242
public const COLUMN_PASSWORD = 'password';
4343

44+
public const COLUMN_DISABLE_AUTO_GROUP_CHANGE = 'disable_auto_group_change';
45+
4446
/**#@-*/
4547

4648
/**#@+
@@ -162,6 +164,7 @@ class Customer extends AbstractCustomer
162164
'failures_num',
163165
'first_failure',
164166
'lock_expires',
167+
self::COLUMN_DISABLE_AUTO_GROUP_CHANGE,
165168
];
166169

167170
/**
@@ -488,6 +491,9 @@ protected function _prepareDataForUpdate(array $rowData)
488491
} else {
489492
$entityRow['store_id'] = $this->getCustomerStoreId($emailInLowercase, $rowData[self::COLUMN_WEBSITE]);
490493
}
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+
}
491497
$entitiesToUpdate[] = $entityRow;
492498
}
493499

0 commit comments

Comments
 (0)