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.
1 parent 46a5ae9 commit ce84e0cCopy full SHA for ce84e0c
app/code/Magento/Catalog/Model/Product/Attribute/Backend/Price.php
@@ -128,6 +128,7 @@ public function afterSave($object)
128
$attribute = $this->getAttribute();
129
$attributeCode = $attribute->getAttributeCode();
130
$value = $object->getData($attributeCode);
131
+ // $value may be passed as null to unset the attribute
132
if ($value === null || (float)$value > 0) {
133
if ($attribute->isScopeWebsite() && $object->getStoreId() != \Magento\Store\Model\Store::DEFAULT_STORE_ID) {
134
if ($this->isUseDefault($object)) {
0 commit comments