Merge pull request #194 from sumitwebkul/gli-487

Page redirects to list page when entering the invalid discount while creating the group in Groups controller (AdminGroupsController.php)
This commit is contained in:
Rohit Jain
2021-02-04 16:33:54 +05:30
committed by GitHub

View File

@@ -415,6 +415,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();