Skip to content

Commit 1bfd17e

Browse files
MAGETWO-44461: Error on importing customer main file with custom attribute of dropdown type
1 parent e4bed14 commit 1bfd17e

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ protected function _prepareDataForUpdate(array $rowData)
383383
if ('select' == $attributeParameters['type']) {
384384
$value = isset($attributeParameters['options'][strtolower($value)])
385385
? $attributeParameters['options'][strtolower($value)]
386-
: null;
386+
: 0;
387387
} elseif ('datetime' == $attributeParameters['type']) {
388388
$value = (new \DateTime())->setTimestamp(strtotime($value));
389389
$value = $value->format(\Magento\Framework\Stdlib\DateTime::DATETIME_PHP_FORMAT);

0 commit comments

Comments
 (0)