Correction pour enregistrement utilisateur

This commit is contained in:
Michael RICOIS 2011-07-01 06:52:17 +00:00
parent 204833adec
commit 5a070a8157

View File

@ -159,7 +159,7 @@ class UserController extends Zend_Controller_Action
if (!empty($action) || $action!='new') {
Zend_Registry::get('firebug')->info('Lecture des informations');
if ( !empty($login) && (!$isProfilUpdated || !$isPasswordUpdated) ) {
if ( !empty($login) && !$isProfilUpdated && $isPasswordUpdated ) {
Zend_Registry::get('firebug')->info('getInfosLogin');
$reponse = $ws->getInfosLogin($login);
$this->view->assign('options', $reponse->result);
@ -172,7 +172,6 @@ class UserController extends Zend_Controller_Action
$this->view->assign('droits', explode(' ', $identity->droits));
$this->view->assign('droitsClients', explode(' ', $identity->droitsClients));
}
$this->view->assign('loginNew', '');
$this->view->assign('action', 'update');
$this->view->assign('pref', explode(' ',$identity->pref));