Skip to content

Commit 3cf4aa9

Browse files
authored
Removed @deprecated methods
1 parent bc0258a commit 3cf4aa9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ public function execute()
9494
$this->_validateMassStatus($productIds, $status);
9595
$this->_objectManager->get(\Magento\Catalog\Model\Product\Action::class)
9696
->updateAttributes($productIds, ['status' => $status], (int) $storeId);
97-
$this->messageManager->addSuccess(__('A total of %1 record(s) have been updated.', count($productIds)));
97+
$this->messageManager->addSuccessMessage(__('A total of %1 record(s) have been updated.', count($productIds)));
9898
$this->_productPriceIndexerProcessor->reindexList($productIds);
9999
} catch (\Magento\Framework\Exception\LocalizedException $e) {
100-
$this->messageManager->addError($e->getMessage());
100+
$this->messageManager->addErrorMessage($e->getMessage());
101101
} catch (\Exception $e) {
102-
$this->messageManager->addException($e, __('Something went wrong while updating the product(s) status.'));
102+
$this->messageManager->addExceptionMessage($e, __('Something went wrong while updating the product(s) status.'));
103103
}
104104

105105
/** @var \Magento\Backend\Model\View\Result\Redirect $resultRedirect */

0 commit comments

Comments
 (0)