Display success message for bulk status updates at back office

This commit is contained in:
Abhishek Kumar
2023-08-28 19:14:56 +05:30
parent ccace94c38
commit 77570afea3

View File

@@ -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;
}