// Refactoring: remove $token arg from process functions
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14269 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -356,14 +356,14 @@ class AdminGroupsControllerCore extends AdminController
|
||||
return array('unauth_modules' => $unauth_modules, 'auth_modules' => $auth_modules);
|
||||
}
|
||||
|
||||
public function processSave($token)
|
||||
public function processSave()
|
||||
{
|
||||
if (!$this->validateDiscount(Tools::getValue('reduction')))
|
||||
$this->errors[] = Tools::displayError('Discount value is incorrect (must be a percentage)');
|
||||
else
|
||||
{
|
||||
$this->updateCategoryReduction();
|
||||
parent::processSave($token);
|
||||
parent::processSave();
|
||||
$this->updateRestrictions();
|
||||
}
|
||||
}
|
||||
@@ -452,10 +452,8 @@ class AdminGroupsControllerCore extends AdminController
|
||||
|
||||
/**
|
||||
* Toggle show prices flag
|
||||
*
|
||||
* @param string $token
|
||||
*/
|
||||
public function processChangeShowPricesVal($token)
|
||||
public function processChangeShowPricesVal()
|
||||
{
|
||||
$group = new Group($this->id_object);
|
||||
if (!Validate::isLoadedObject($group))
|
||||
|
||||
Reference in New Issue
Block a user