Skip to content

Commit cce83d7

Browse files
author
Valeriy Nayda
committed
MAGETWO-52017: Bundle product price absent in shopping cart product grid
1 parent d769af0 commit cce83d7

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

app/code/Magento/Eav/Model/Entity/Attribute/AbstractAttribute.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -602,20 +602,6 @@ public function isValueEmpty($value)
602602
return $isEmpty;
603603
}
604604

605-
/**
606-
* @param array|null|bool|int|float|string $value
607-
* @return bool
608-
*/
609-
public function isApplicable($value)
610-
{
611-
$attrType = $this->getBackend()->getType();
612-
$isApplicable = true;
613-
if (!is_scalar($value) && ($attrType == 'int' || $attrType == 'decimal')) {
614-
$isApplicable = false;
615-
}
616-
return $isApplicable;
617-
}
618-
619605
/**
620606
* Check if attribute in specified set
621607
*

app/code/Magento/Eav/Model/ResourceModel/CreateHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function execute($entityType, $entityData, $arguments = [])
102102
continue;
103103
}
104104
if (isset($entityData[$attribute->getAttributeCode()])
105-
&& $attribute->isApplicable($entityData[$attribute->getAttributeCode()])
105+
&& !is_array($entityData[$attribute->getAttributeCode()])
106106
&& !$attribute->isValueEmpty($entityData[$attribute->getAttributeCode()])
107107
) {
108108
$this->attributePersistor->registerInsert(

0 commit comments

Comments
 (0)