We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fdb061a + 1bfd17e commit a1ad80eCopy full SHA for a1ad80e
app/code/Magento/CustomerImportExport/Model/Import/Customer.php
@@ -377,7 +377,9 @@ protected function _prepareDataForUpdate(array $rowData)
377
$attributeParameters = $this->_attributes[$attributeCode];
378
379
if ('select' == $attributeParameters['type']) {
380
- $value = $attributeParameters['options'][strtolower($value)];
+ $value = isset($attributeParameters['options'][strtolower($value)])
381
+ ? $attributeParameters['options'][strtolower($value)]
382
+ : 0;
383
} elseif ('datetime' == $attributeParameters['type']) {
384
$value = (new \DateTime())->setTimestamp(strtotime($value));
385
$value = $value->format(\Magento\Framework\Stdlib\DateTime::DATETIME_PHP_FORMAT);
0 commit comments