From fd1e1edc192ab66346e1ad6e1ec58173b866ccb1 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Thu, 10 May 2012 12:32:57 +0000 Subject: [PATCH] Correction forme juridique --- application/controllers/JuridiqueController.php | 3 +-- application/models/FormeJuridique.php | 2 +- library/Object/Formejuridique.php | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/application/controllers/JuridiqueController.php b/application/controllers/JuridiqueController.php index b82e358b..ad37a041 100644 --- a/application/controllers/JuridiqueController.php +++ b/application/controllers/JuridiqueController.php @@ -25,8 +25,7 @@ class JuridiqueController extends Zend_Controller_Action public function completedAction() { - require_once APPLICATION_PATH . '/models/FormeJuridique.php'; - $table = new Application_Model_FormJuridique(); + $table = new Application_Model_FormeJuridique(); $this->_helper->layout()->disableLayout(); $this->_helper->viewRenderer->setNoRender(); $request = $this->getRequest(); diff --git a/application/models/FormeJuridique.php b/application/models/FormeJuridique.php index e1ec70d8..3aca0976 100644 --- a/application/models/FormeJuridique.php +++ b/application/models/FormeJuridique.php @@ -1,5 +1,5 @@ fetchAll($formes->select()->where('LENGTH(fjCode) = 1'))->toArray(); $structure = array(); @@ -50,7 +50,7 @@ class Object_Formejuridique public function _getFils($fjcode) { $lenth = ((strlen($fjcode) == 2)?4:2); - $formes = new Application_Model_FormJuridique(); + $formes = new Application_Model_FormeJuridique(); $sql = $formes->select()->from('formejuridique', array( 'size' => new Zend_Db_Expr('LENGTH(fjCode)'), 'fjCode',