//PreProcess => PostProcess

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8866 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mDeflotte
2011-09-29 09:01:59 +00:00
parent 5f02dc0d0e
commit e689f575dd
3 changed files with 16 additions and 12 deletions
+13 -2
View File
@@ -32,7 +32,11 @@ class OrderFollowControllerCore extends FrontController
public $authRedirection = 'order-follow';
public $ssl = true;
public function process()
/**
* Start forms process
* @see FrontController::postProcess()
*/
public function postProcess()
{
if (Tools::isSubmit('submitReturnMerchandise'))
{
@@ -66,7 +70,14 @@ class OrderFollowControllerCore extends FrontController
Module::hookExec('orderReturn', array('orderReturn' => $orderReturn));
Tools::redirect('index.php?controller=order-follow');
}
}
/**
* Assign template vars related to page content
* @see FrontController::process()
*/
public function process()
{
$ordersReturn = OrderReturn::getOrdersReturn($this->context->customer->id);
if (Tools::isSubmit('errorQuantity'))
$this->context->smarty->assign('errorQuantity', true);