Skip to content

Commit fa41639

Browse files
MC-23193: Tier Prices error on product update
1 parent f0ffe26 commit fa41639

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

app/code/Magento/Catalog/Model/Product/Attribute/Backend/TierPrice/UpdateHandler.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,7 @@ public function execute($entity, $arguments = [])
9696
$productId = (int)$entity->getData($identifierField);
9797

9898
// prepare original data to compare
99-
$origPrices = [];
100-
$originalId = $entity->getOrigData($identifierField);
101-
if (empty($originalId) || $entity->getData($identifierField) == $originalId) {
102-
$origPrices = $entity->getOrigData($attribute->getName());
103-
}
104-
99+
$origPrices = $entity->getOrigData($attribute->getName());
105100
$old = $this->prepareOldTierPriceToCompare($origPrices);
106101
// prepare data for save
107102
$new = $this->prepareNewDataForSave($priceRows, $isGlobal);

0 commit comments

Comments
 (0)