Don't use "saisie" method + comment

This commit is contained in:
Michael RICOIS 2014-03-05 16:21:55 +00:00
parent eb6769e435
commit 57461860b8

View File

@ -630,7 +630,8 @@ class IdentiteController extends Zend_Controller_Action
if ( ($session->getFormeJuridique()>=1000 && $session->getFormeJuridique()<=1999)
|| ($session->getFormeJuridique()>=10 && $session->getFormeJuridique()<=19) ) {
$this->view->assign('PP', true);
//@todo : using this function is strange - How to get the id before ?
$result = $ws->searchLienRef($siren, 'siren');
if (count($result->item)>0) {
foreach ($result->item as $item) {
@ -638,13 +639,12 @@ class IdentiteController extends Zend_Controller_Action
break;
}
}
$result = $ws->getSaisieLienRef($id);
$items = json_decode($result, true);
Zend_Registry::get('firebug')->info($items);
$this->view->assign('nom', $items['nom']);
$this->view->assign('prenom', $items['prenom']);
$this->view->assign('civilite', $items['civilite']);
$this->view->assign('naissanceDate', $items['naissance_date']);
$result = $ws->getLienRef($id);
$this->view->assign('nom', $result->nom);
$this->view->assign('prenom', $result->prenom);
$this->view->assign('civilite', $result->civilite);
$this->view->assign('naissanceDate', $result->naissance_Date);
}
if ( in_array($session->getFormeJuridique(), array(5488,5498,5720)) ) {