Skip to content

Commit c2297c7

Browse files
committed
MAGETWO-88905: Import Customer ("gender" field) issue
- Static tests fixes
1 parent cd002ed commit c2297c7

File tree

1 file changed

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

1 file changed

+5
-11
lines changed

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

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -525,10 +525,8 @@ protected function _importData()
525525
if (!isset($attributesToSave[$tableName])) {
526526
$attributesToSave[$tableName] = [];
527527
}
528-
$attributesToSave[$tableName] = array_diff_key(
529-
$attributesToSave[$tableName],
530-
$customerAttributes
531-
) + $customerAttributes;
528+
$attributes = array_diff_key($attributesToSave[$tableName], $customerAttributes);
529+
$attributesToSave[$tableName] = $attributes + $customerAttributes;
532530
}
533531
}
534532
}
@@ -584,13 +582,9 @@ protected function _validateRowForUpdate(array $rowData, $rowNumber)
584582
$this->addRowError(self::ERROR_INVALID_STORE, $rowNumber);
585583
}
586584
// check password
587-
if (isset(
588-
$rowData['password']
589-
) && strlen(
590-
$rowData['password']
591-
) && $this->string->strlen(
592-
$rowData['password']
593-
) < self::MIN_PASSWORD_LENGTH
585+
if (isset($rowData['password'])
586+
&& strlen($rowData['password'])
587+
&& $this->string->strlen($rowData['password']) < self::MIN_PASSWORD_LENGTH
594588
) {
595589
$this->addRowError(self::ERROR_PASSWORD_LENGTH, $rowNumber);
596590
}

0 commit comments

Comments
 (0)