fix for bug #1172: values lost, if error in user-creation/validation

This commit is contained in:
Ralf Becker 2007-08-30 15:29:34 +00:00
parent f2ea7ea2f6
commit e91b4400b9

View File

@ -588,7 +588,7 @@
$errors = $this->bo->add_user($userData); $errors = $this->bo->add_user($userData);
if(is_array($errors)) if(is_array($errors))
{ {
$this->create_edit_user($userData,$errors); $this->create_edit_user(0,$userData,$errors);
$GLOBALS['egw']->common->egw_exit(); $GLOBALS['egw']->common->egw_exit();
} }
$GLOBALS['egw']->redirect($GLOBALS['egw']->link('/index.php','menuaction=admin.uiaccounts.list_users')); $GLOBALS['egw']->redirect($GLOBALS['egw']->link('/index.php','menuaction=admin.uiaccounts.list_users'));