diff --git a/application/modules/admin/controllers/SitoController.php b/application/modules/admin/controllers/SitoController.php index 9316c2df5e07cf9f3fdd1427b0e66b000307960b..9f42ce1a68d46b73a581581b1c9d1a149de10a89 100644 --- a/application/modules/admin/controllers/SitoController.php +++ b/application/modules/admin/controllers/SitoController.php @@ -234,7 +234,7 @@ class Admin_SitoController extends Zend_Controller_Action { function catdelAction() { - if (!$categorie = Class_SitothequeCategorie::find((int)$this->_getParam('id_cat'))) { + if (!$categorie = Class_SitothequeCategorie::find((int)$this->_getParam('id'))) { $this->_redirect('/admin/sito'); return; } diff --git a/tests/application/modules/admin/controllers/SitothequeControllerTest.php b/tests/application/modules/admin/controllers/SitothequeControllerTest.php index bda90493c6bed4eefb554b0924ee291c0523f7fc..f841d4c890219c9683b4ecf62eaeb68db789c767 100644 --- a/tests/application/modules/admin/controllers/SitothequeControllerTest.php +++ b/tests/application/modules/admin/controllers/SitothequeControllerTest.php @@ -462,7 +462,7 @@ class SitothequeControllerPostAddCategorieNationalesTest extends SitothequeContr class SitothequeControllerDeleteCategorieInformationsTest extends SitothequeControllerTestCase { public function setUp() { parent::setUp(); - $this->dispatch('/admin/sito/catdel/id_cat/2', true); + $this->dispatch('/admin/sito/catdel/id/2', true); }