Skip to content

Commit

Permalink
Merge pull request #291 from magento-nord/MAGETWO-35406
Browse files Browse the repository at this point in the history
MAGETWO-35406 [GITHUB] check for select and multiselect to ignore corrupted attributes #1087
  • Loading branch information
Kasian,Andrii(akasian) committed May 15, 2015
2 parents 05b2964 + 66225e2 commit a0ca082
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 a0ca082

Please sign in to comment.