Skip to content

Commit eed81bf

Browse files
authored
Merge pull request #1407 from magento-folks/MAGETWO-71385
MAGETWO-71385: Remove Deprecated AroundProductRepositorySave Plugin
2 parents 7632b1c + 0a008e0 commit eed81bf

File tree

8 files changed

+7
-403
lines changed

8 files changed

+7
-403
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ public function save(\Magento\Catalog\Api\Data\ProductInterface $product, $saveO
641641
}
642642
unset($this->instances[$product->getSku()]);
643643
unset($this->instancesById[$product->getId()]);
644-
return $this->get($product->getSku());
644+
return $this->get($product->getSku(), false, $product->getStoreId());
645645
}
646646

647647
/**

app/code/Magento/Catalog/Test/Unit/Model/ProductRepositoryTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ protected function setUp()
193193
'validate',
194194
'save',
195195
'getMediaGalleryEntries',
196-
'setData'
196+
'setData',
197+
'getStoreId'
197198
]);
198199
$this->initializedProductMock->expects($this->any())
199200
->method('hasGalleryAttribute')

app/code/Magento/CatalogInventory/Model/Plugin/AroundProductRepositorySave.php

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)