Skip to content

Commit

Permalink
check for select and multiselect to ignore corrupted attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
dimajanzen committed Mar 11, 2015
1 parent d0131d7 commit 5e64d08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/ImportExport/Model/Import.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public function getOperationResultMessages($validationResult)
*/
public static function getAttributeType(\Magento\Eav\Model\Entity\Attribute\AbstractAttribute $attribute)
{
if ($attribute->usesSource()) {
if ($attribute->usesSource() && in_array($attribute->getFrontendInput(), array('select', 'multiselect'))) {
return $attribute->getFrontendInput() == 'multiselect' ? 'multiselect' : 'select';
} elseif ($attribute->isStatic()) {
return $attribute->getFrontendInput() == 'date' ? 'datetime' : 'varchar';
Expand Down

0 comments on commit 5e64d08

Please sign in to comment.