mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-20 12:58:46 +01:00
Change delete group handler to accept documentation data
This commit is contained in:
parent
5f58e4a23c
commit
ffa1102687
@ -293,10 +293,11 @@ class admin_account
|
|||||||
* Delete a group via ajax
|
* Delete a group via ajax
|
||||||
*
|
*
|
||||||
* @param int $account_id
|
* @param int $account_id
|
||||||
|
* @param String[] $data Optional data
|
||||||
*/
|
*/
|
||||||
public static function ajax_delete_group($account_id)
|
public static function ajax_delete_group($account_id, $data)
|
||||||
{
|
{
|
||||||
$cmd = new admin_cmd_delete_account(Api\Accounts::id2name(Api\Accounts::id2name($account_id)), null, false);
|
$cmd = new admin_cmd_delete_account(Api\Accounts::id2name(Api\Accounts::id2name($account_id)), null, false, $data['admin_cmd']);
|
||||||
$msg = $cmd->run();
|
$msg = $cmd->run();
|
||||||
|
|
||||||
Api\Json\Response::get()->call('egw.refresh', $msg, 'admin', $account_id, 'delete');
|
Api\Json\Response::get()->call('egw.refresh', $msg, 'admin', $account_id, 'delete');
|
||||||
|
@ -443,12 +443,8 @@ app.classes.admin = AppJS.extend(
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'delete':
|
case 'delete':
|
||||||
if (!this.egw.app('policy'))
|
this.egw.json('admin_account::ajax_delete_group', [account_id, _action.data]).sendRequest();
|
||||||
{
|
|
||||||
this.egw.json('admin_account::ajax_delete_group', [account_id]).sendRequest();
|
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
// fall through to open popup for policy
|
|
||||||
default:
|
default:
|
||||||
if (!_action.data.url)
|
if (!_action.data.url)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user