Skip to content

Commit 8e23ebf

Browse files
author
Jeroen
authored
Save product using repository in adminhtml controller
1 parent 77af5d6 commit 8e23ebf

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Catalog/Controller/Adminhtml/Product

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Controller/Adminhtml/Product/Save.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function execute()
128128

129129
$originalSku = $product->getSku();
130130
$canSaveCustomOptions = $product->getCanSaveCustomOptions();
131-
$product->save();
131+
$product = $this->productRepository->save($product);
132132
$this->handleImageRemoveError($data, $product->getId());
133133
$this->getCategoryLinkManagement()->assignProductToCategories(
134134
$product->getSku(),

0 commit comments

Comments
 (0)