diff --git a/core/lib/Thelia/Config/Resources/routing/admin.xml b/core/lib/Thelia/Config/Resources/routing/admin.xml
index 2561dcc99..cd7af7aef 100755
--- a/core/lib/Thelia/Config/Resources/routing/admin.xml
+++ b/core/lib/Thelia/Config/Resources/routing/admin.xml
@@ -37,16 +37,20 @@
- Thelia\Controller\Admin\CouponController::indexAction
+ Thelia\Controller\Admin\CouponController::processAction
+ browse
- Thelia\Controller\Admin\CouponController::createAction
+ Thelia\Controller\Admin\CouponController::processAction
+ create
-
- Thelia\Controller\Admin\CouponController::editAction
+
+ Thelia\Controller\Admin\CouponController::processAction
+ edit
-
- Thelia\Controller\Admin\CouponController::readAction
+
+ Thelia\Controller\Admin\CouponController::processAction
+ read
diff --git a/core/lib/Thelia/Controller/Admin/CouponController.php b/core/lib/Thelia/Controller/Admin/CouponController.php
index e6159c9ac..b1cf197c8 100755
--- a/core/lib/Thelia/Controller/Admin/CouponController.php
+++ b/core/lib/Thelia/Controller/Admin/CouponController.php
@@ -46,37 +46,7 @@ class CouponController extends BaseAdminController
*/
public function indexAction()
{
- return $this->processAction();
- }
-
- /**
- * Create a Coupon Action
- *
- * @return \Symfony\Component\HttpFoundation\Response
- */
- public function createAction()
- {
- return $this->processAction('create');
- }
-
- /**
- * Edit a Coupon Action
- *
- * @return \Symfony\Component\HttpFoundation\Response
- */
- public function editAction()
- {
- return $this->processAction('edit');
- }
-
- /**
- * Read a Coupon Action
- *
- * @return \Symfony\Component\HttpFoundation\Response
- */
- public function readAction()
- {
- return $this->processAction('read');
+ return $this->process();
}
/**
@@ -142,10 +112,11 @@ class CouponController extends BaseAdminController
*
* @return \Symfony\Component\HttpFoundation\Response
*/
- public function processAction($action = 'browse')
+ public function processAction()
{
+ var_dump($this->getRequest()->attributes);
// Get the current action
-// $action = $this->getRequest()->get('action', 'browse');
+ $action = $this->getRequest()->get('action', 'browse');
// Get the category ID
// $id = $this->getRequest()->get('id', 0);