Debug enregistrement profil

This commit is contained in:
Michael RICOIS 2013-01-29 14:08:45 +00:00
parent 700499dd47
commit d37b8b74f3

View File

@ -73,6 +73,7 @@ class ProfilController extends Zend_Controller_Action
$this->view->assign('criteres', $tmp); $this->view->assign('criteres', $tmp);
$this->view->assign('reference', $profil->current()->reference); $this->view->assign('reference', $profil->current()->reference);
} }
$this->view->assign('doublon', $doublon); $this->view->assign('doublon', $doublon);
$this->view->assign('id', $id); $this->view->assign('id', $id);
$this->view->assign('edit', true); $this->view->assign('edit', true);
@ -95,7 +96,7 @@ class ProfilController extends Zend_Controller_Action
$data = array( $data = array(
'reference' => $reference, 'reference' => $reference,
'criteres' => json_encode($criteres), 'criteres' => json_encode($criteres),
'doublon' => json_encode($doublon), 'doublon' => ($doublon!='') ? json_encode($doublon) : '',
); );
$id = $request->getParam('id', null); $id = $request->getParam('id', null);
@ -112,6 +113,7 @@ class ProfilController extends Zend_Controller_Action
Zend_Registry::get('firebug')->info($e->getMessage()); Zend_Registry::get('firebug')->info($e->getMessage());
} }
} }
if ( $result ){ if ( $result ){
echo ''; echo '';
} else { } else {