Skip to content

Commit a0ca082

Browse files
author
Kasian,Andrii(akasian)
committed
Merge pull request #291 from magento-nord/MAGETWO-35406
MAGETWO-35406 [GITHUB] check for select and multiselect to ignore corrupted attributes #1087
2 parents 05b2964 + 66225e2 commit a0ca082

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/ImportExport/Model/Import.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public function getOperationResultMessages($validationResult)
279279
*/
280280
public static function getAttributeType(\Magento\Eav\Model\Entity\Attribute\AbstractAttribute $attribute)
281281
{
282-
if ($attribute->usesSource()) {
282+
if ($attribute->usesSource() && in_array($attribute->getFrontendInput(), array('select', 'multiselect'))) {
283283
return $attribute->getFrontendInput() == 'multiselect' ? 'multiselect' : 'select';
284284
} elseif ($attribute->isStatic()) {
285285
return $attribute->getFrontendInput() == 'date' ? 'datetime' : 'varchar';

0 commit comments

Comments
 (0)