// Fix backOffice order cart rules management
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14201 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -89,6 +89,15 @@ class AdminCartRulesControllerCore extends AdminController
|
||||
$this->afterAdd($current_object);
|
||||
}
|
||||
|
||||
public function processAdd($token)
|
||||
{
|
||||
if ($cart_rule = parent::processAdd($token))
|
||||
$this->context->smarty->assign('new_cart_rule', $cart_rule);
|
||||
if (Tools::getValue('submitFormAjax'))
|
||||
$this->redirect_after = false;
|
||||
|
||||
return $cart_rule;
|
||||
}
|
||||
/* @TODO Move this function into CartRule */
|
||||
protected function afterAdd($currentObject)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user