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

This commit is contained in:
sumit panwar
2021-01-21 20:44:41 +05:30
parent 6b7ef21e3a
commit f87f4a0ac2

View File

@@ -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();