Skip to content

Commit eb1970a

Browse files
committed
MAGETWO-83706: Scheduled Update to existing Group Price / Special Price removes the previously configured price, or results in changes not being saved
1 parent 7d692b2 commit eb1970a

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/Catalog/Model/Product/Attribute/Backend/TierPrice

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,15 @@ public function __construct(
7272
* @return \Magento\Catalog\Api\Data\ProductInterface|object
7373
* @throws \Magento\Framework\Exception\NoSuchEntityException
7474
* @throws \Magento\Framework\Exception\LocalizedException
75+
* @throws \Magento\Framework\Exception\RuntimeException
7576
*/
7677
public function execute($entity, $arguments = [])
7778
{
7879
$attribute = $this->attributeRepository->get('tier_price');
7980
$priceRows = $entity->getData($attribute->getName());
8081
if (null !== $priceRows) {
8182
if (!is_array($priceRows)) {
82-
throw new \Magento\Framework\Exception\LocalizedException(
83+
throw new \Magento\Framework\Exception\RuntimeException(
8384
__('Tier prices data should be array, but actually other type is received')
8485
);
8586
}

0 commit comments

Comments
 (0)