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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user