Skip to content

Commit 6c760b5

Browse files
committed
AC-2904-v1:: Saving product with non-default store scope causes untouched attributes to become store scoped if loaded using ProductRepository
1 parent 1fad190 commit 6c760b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/code/Magento/Catalog/Model/ProductRepository.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,7 @@ public function save(ProductInterface $product, $saveOptions = false)
626626
} elseif (!$defaultValue && $value !== null
627627
&& $attribute->getScope() !== EavAttributeInterface::SCOPE_GLOBAL_TEXT
628628
&& $existingProduct->getData($attributeCode) === $value
629+
&& $existingProduct->getOrigData($attributeCode) === $value
629630
&& !$this->scopeOverriddenValue->containsValue(
630631
ProductInterface::class,
631632
$product,

0 commit comments

Comments
 (0)