Skip to content

Commit

Permalink
Merge pull request #2990 from magento-chaika/MAGETWO-93054-new
Browse files Browse the repository at this point in the history
[chaika] MAGETWO-93054: Admin logs don't detail quantity changes
  • Loading branch information
Lysenko Olexandr authored Aug 7, 2018
2 parents 1bf13f8 + 8d51571 commit daff59a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ public function execute()
$extendedData = $data;
$extendedData['can_save_custom_options'] = $canSaveCustomOptions;
$this->copyToStores($extendedData, $productId);

$this->messageManager->addSuccessMessage(__('You saved the product.'));
$this->getDataPersistor()->clear('catalog_product');
if ($product->getSku() != $originalSku) {
Expand All @@ -142,6 +141,7 @@ public function execute()
);

if ($redirectBack === 'duplicate') {
$product->unsetData('quantity_and_stock_status');
$newProduct = $this->productCopier->copy($product);
$this->messageManager->addSuccessMessage(__('You duplicated the product.'));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ private function processStockData(Product $product)
$this->setStockDataToProduct($product, $stockItem, $quantityAndStockStatus);
}
}
$product->unsetData('quantity_and_stock_status');
}

/**
Expand Down

0 comments on commit daff59a

Please sign in to comment.