Skip to content
Snippets Groups Projects
Commit 73829d3e authored by llaffont's avatar llaffont
Browse files

Correction suppression catégorie sitothèque

parent 521955bc
Branches
Tags
No related merge requests found
......@@ -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;
}
......
......@@ -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);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment