File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
app/code/Magento/CustomerImportExport/Model/Import
dev/tests/integration/testsuite/Magento/CustomerImportExport/Model/Import Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -481,15 +481,15 @@ protected function _prepareDataForUpdate(array $rowData)
481
481
$ entitiesToCreate [] = $ entityRow ;
482
482
} else {
483
483
// edit
484
- $ columnDisableAutoGroupChange =CustomerInterface::DISABLE_AUTO_GROUP_CHANGE ;
485
484
$ entityRow ['updated_at ' ] = $ now ->format (\Magento \Framework \Stdlib \DateTime::DATETIME_PHP_FORMAT );
486
485
if (!empty ($ rowData [self ::COLUMN_STORE ])) {
487
486
$ entityRow ['store_id ' ] = $ this ->_storeCodeToId [$ rowData [self ::COLUMN_STORE ]];
488
487
} else {
489
488
$ entityRow ['store_id ' ] = $ this ->getCustomerStoreId ($ emailInLowercase , $ rowData [self ::COLUMN_WEBSITE ]);
490
489
}
491
- if (!empty ($ rowData [$ columnDisableAutoGroupChange ])) {
492
- $ entityRow [$ columnDisableAutoGroupChange ] = $ rowData [$ columnDisableAutoGroupChange ];
490
+ if (!empty ($ rowData [CustomerInterface::DISABLE_AUTO_GROUP_CHANGE ])) {
491
+ $ entityRow [CustomerInterface::DISABLE_AUTO_GROUP_CHANGE ] =
492
+ $ rowData [CustomerInterface::DISABLE_AUTO_GROUP_CHANGE ];
493
493
}
494
494
$ entitiesToUpdate [] = $ entityRow ;
495
495
}
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ public function testImportData()
160
160
$ this ->assertNotEquals (
161
161
$ existingCustomer ->getDisableAutoGroupChange (),
162
162
$ updatedCustomer ->getDisableAutoGroupChange (),
163
- 'disable_auto_group_change must be changed '
163
+ 'Disable automatic group change based on VAT ID must be changed '
164
164
);
165
165
$ this ->assertEquals (
166
166
$ existingCustomer ->getGender (),
You can’t perform that action at this time.
0 commit comments