From f4b534904fc5b28e2b3cbdf2a4dd715e6f68f983 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 6 Mar 2008 09:03:27 +0000 Subject: [PATCH] fixed delete user: select new owner, was showing only the first maxmatches accounts --- admin/inc/class.uiaccounts.inc.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/admin/inc/class.uiaccounts.inc.php b/admin/inc/class.uiaccounts.inc.php index 16fa270896..0725b05fe6 100755 --- a/admin/inc/class.uiaccounts.inc.php +++ b/admin/inc/class.uiaccounts.inc.php @@ -716,16 +716,9 @@ // the account can have special chars/white spaces, if it is a ldap dn $account_id = rawurlencode($_GET['account_id']); - // Find out who the new owner is of the deleted users records... - $users = $GLOBALS['egw']->accounts->get_list('accounts'); - $c_users = count($users); - $str = ''; - for($i=0;$i<$c_users;$i++) - { - $str .= ''."\n"; - } $var['lang_new_owner'] = lang('Who would you like to transfer ALL records owned by the deleted user to?'); - $var['new_owner_select'] = ''."\n"; + $accountsel = new uiaccountsel(); + $var['new_owner_select'] = $accountsel->selection('new_owner','new_owner',array(''),'accounts',0,$account_id,'size="15"','',lang('Delete all records')); $var['cancel'] = lang('cancel'); $var['delete'] = lang('delete'); $t->set_var($var);