Correction niveau et paramètres

This commit is contained in:
Michael RICOIS 2012-07-09 14:06:51 +00:00
parent ef9584e5e4
commit c7535df8c5

View File

@ -61,6 +61,7 @@ class ArborescenceController extends Zend_Controller_Action
$request = $this->getRequest();
$key = $request->getParam('key');
$parent = $request->getParam('parent');
$niveau = $request->getParam('niveau', 1);
$niveau = $niveau + 1;
@ -80,7 +81,6 @@ class ArborescenceController extends Zend_Controller_Action
}
}
$niveau++;
$nafM = new Application_Model_Naf();
$sql = $nafM->select();