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