mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-31 19:22:14 +01:00
delete user by account_id, not account_lid, as there might be a group with same name
This commit is contained in:
parent
08ed554df5
commit
eae15c06fd
@ -217,7 +217,7 @@ class admin_account
|
||||
}
|
||||
if ($content['delete'])
|
||||
{
|
||||
$cmd = new admin_cmd_delete_account(accounts::id2name($content['account_id']), $content['new_owner'], true);
|
||||
$cmd = new admin_cmd_delete_account($content['account_id'], $content['new_owner'], true);
|
||||
$msg = $cmd->run();
|
||||
if ($content['contact_id'])
|
||||
{
|
||||
|
@ -76,9 +76,9 @@ class admin_cmd_delete_account extends admin_cmd
|
||||
|
||||
if ($account_id < 0)
|
||||
{
|
||||
return lang("Group '%1' deleted.",$this->account)."\n\n";
|
||||
return lang("Group '%1' deleted.",$account_lid)."\n\n";
|
||||
}
|
||||
return lang("Account '%1' deleted.",$this->account)."\n\n";
|
||||
return lang("Account '%1' deleted.",$account_lid)."\n\n";
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user