forgot to restore the input fields in error case

This commit is contained in:
Lars Kneschke 2001-02-13 00:16:35 +00:00
parent a74a6539f7
commit b1aa198c23

View File

@ -27,9 +27,16 @@
$t = new Template($phpgw->common->get_tpl_dir("admin"));
$t->set_file(array("form" => "account_form.tpl"));
$account = CreateObject('phpgwapi.accounts',$_account_id);
$userData = $account->read_repository();
if ($_userData)
{
$userData=$_userData;
}
else
{
$account = CreateObject('phpgwapi.accounts',$_account_id);
$userData = $account->read_repository();
}
$t->set_var("form_action",$phpgw->link("editaccount.php",
"account_id=$_account_id&old_loginid=".rawurlencode($userData['account_lid'])));