Skip to content

Commit daff59a

Browse files
author
Lysenko Olexandr
authored
Merge pull request #2990 from magento-chaika/MAGETWO-93054-new
[chaika] MAGETWO-93054: Admin logs don't detail quantity changes
2 parents 1bf13f8 + 8d51571 commit daff59a

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)