From 77570afea3e8d4019b10c499abd97ffa97ddc393 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Mon, 28 Aug 2023 19:14:56 +0530 Subject: [PATCH] Display success message for bulk status updates at back office --- classes/controller/AdminController.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/classes/controller/AdminController.php b/classes/controller/AdminController.php index ea3a469f7..712650a5c 100644 --- a/classes/controller/AdminController.php +++ b/classes/controller/AdminController.php @@ -4009,7 +4009,7 @@ class AdminControllerCore extends Controller * @return bool true if success * @throws PrestaShopException */ - protected function processBulkStatusSelection($status) + protected function processBulkStatusSelection($status, $redirect = true) { $result = true; if (is_array($this->boxes) && !empty($this->boxes)) { @@ -4021,6 +4021,11 @@ class AdminControllerCore extends Controller $result &= $object->update(); } } + + if ($redirect && $result) { + $this->redirect_after = self::$currentIndex.'&conf=5&token='.$this->token; + } + return $result; }