File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/Magento/Catalog/Controller/Adminhtml/Product Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -94,12 +94,12 @@ public function execute()
94
94
$ this ->_validateMassStatus ($ productIds , $ status );
95
95
$ this ->_objectManager ->get (\Magento \Catalog \Model \Product \Action::class)
96
96
->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 )));
98
98
$ this ->_productPriceIndexerProcessor ->reindexList ($ productIds );
99
99
} catch (\Magento \Framework \Exception \LocalizedException $ e ) {
100
- $ this ->messageManager ->addError ($ e ->getMessage ());
100
+ $ this ->messageManager ->addErrorMessage ($ e ->getMessage ());
101
101
} 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. ' ));
103
103
}
104
104
105
105
/** @var \Magento\Backend\Model\View\Result\Redirect $resultRedirect */
You can’t perform that action at this time.
0 commit comments