Skip to content

Commit 487ae24

Browse files
author
Bohdan Korablov
committed
MAGETWO-58316: [Github] Customer Import - Invalid data for insert #4291
1 parent 8abf097 commit 487ae24

File tree

1 file changed

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

1 file changed

+0
-5
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -370,11 +370,6 @@ protected function _prepareDataForUpdate(array $rowData)
370370

371371
// attribute values
372372
foreach (array_intersect_key($rowData, $this->_attributes) as $attributeCode => $value) {
373-
if ($newCustomer && !strlen($value)) {
374-
$entityRow[$attributeCode] = $value;
375-
continue;
376-
}
377-
378373
$attributeParameters = $this->_attributes[$attributeCode];
379374
if ('select' == $attributeParameters['type']) {
380375
$value = isset($attributeParameters['options'][strtolower($value)])

0 commit comments

Comments
 (0)