Skip to content

Commit 7e03411

Browse files
author
Michail Slabko
committed
MAGETWO-36162: Unable to change some product information corresponding to all store view (storeId = 0) in multiwebsite structure through API service
- rollback to save with resourceModel
1 parent cf8338d commit 7e03411

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ public function save(\Magento\Catalog\Api\Data\ProductInterface $product, $saveO
586586
if ($tierPrices !== null) {
587587
$product->setData('tier_price', $tierPrices);
588588
}
589-
$product->save();
589+
$this->resourceModel->save($product);
590590
} catch (\Magento\Eav\Model\Entity\Attribute\Exception $exception) {
591591
throw \Magento\Framework\Exception\InputException::invalidFieldValue(
592592
$exception->getAttributeCode(),

0 commit comments

Comments
 (0)