Skip to content

Commit ac86fd3

Browse files
committed
Merge remote-tracking branch 'origin/2.2-develop' into MAGETWO-94003
2 parents 8e67cde + daff59a commit ac86fd3

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
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
@@ -120,7 +120,6 @@ public function execute()
120120
$extendedData = $data;
121121
$extendedData['can_save_custom_options'] = $canSaveCustomOptions;
122122
$this->copyToStores($extendedData, $productId);
123-
124123
$this->messageManager->addSuccessMessage(__('You saved the product.'));
125124
$this->getDataPersistor()->clear('catalog_product');
126125
if ($product->getSku() != $originalSku) {
@@ -142,6 +141,7 @@ public function execute()
142141
);
143142

144143
if ($redirectBack === 'duplicate') {
144+
$product->unsetData('quantity_and_stock_status');
145145
$newProduct = $this->productCopier->copy($product);
146146
$this->messageManager->addSuccessMessage(__('You duplicated the product.'));
147147
}

app/code/Magento/CatalogInventory/Observer/ProcessInventoryDataObserver.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ private function processStockData(Product $product)
7474
$this->setStockDataToProduct($product, $stockItem, $quantityAndStockStatus);
7575
}
7676
}
77-
$product->unsetData('quantity_and_stock_status');
7877
}
7978

8079
/**

0 commit comments

Comments
 (0)