Skip to content
Snippets Groups Projects
Commit 1bfd17ee authored by Andriy Nasinnyk's avatar Andriy Nasinnyk
Browse files

MAGETWO-44461: Error on importing customer main file with custom attribute of dropdown type

parent e4bed144
Branches
No related merge requests found
......@@ -383,7 +383,7 @@ class Customer extends AbstractCustomer
if ('select' == $attributeParameters['type']) {
$value = isset($attributeParameters['options'][strtolower($value)])
? $attributeParameters['options'][strtolower($value)]
: null;
: 0;
} elseif ('datetime' == $attributeParameters['type']) {
$value = (new \DateTime())->setTimestamp(strtotime($value));
$value = $value->format(\Magento\Framework\Stdlib\DateTime::DATETIME_PHP_FORMAT);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment