From f87f4a0ac27dede4eed75337e582ad57447cd210 Mon Sep 17 00:00:00 2001 From: sumit panwar Date: Thu, 21 Jan 2021 20:44:41 +0530 Subject: [PATCH] When we enter wrong Discount percentage during the group creation Page redirects to list page instead of edit page and Add new group button gets hide --- controllers/admin/AdminGroupsController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/admin/AdminGroupsController.php b/controllers/admin/AdminGroupsController.php index bf65d6a55..ae47c00bf 100644 --- a/controllers/admin/AdminGroupsController.php +++ b/controllers/admin/AdminGroupsController.php @@ -451,6 +451,7 @@ class AdminGroupsControllerCore extends AdminController { if (!$this->validateDiscount(Tools::getValue('reduction'))) { $this->errors[] = Tools::displayError('The discount value is incorrect (must be a percentage).'); + $this->display = 'edit'; } else { $this->updateCategoryReduction(); $object = parent::processSave();