mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Admin: Fix some errors deleting a group
- use the minified app.js - export the JS class - include the PHP command class explicitly so it's always found - Make sure to send all expected parameters to ajax_delete_group
This commit is contained in:
parent
aee54e5f45
commit
d521d2aa24
@ -496,7 +496,7 @@ class AdminApp extends EgwApp
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'delete':
|
case 'delete':
|
||||||
this.egw.json('admin_account::ajax_delete_group', [account_id, _action.data, this.et2._inst.etemplate_exec_id]).sendRequest();
|
this.egw.json('admin_account::ajax_delete_group', [account_id, _action.data, this.et2.getInstanceManager().etemplate_exec_id]).sendRequest();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (!_action.data.url)
|
if (!_action.data.url)
|
||||||
@ -1564,7 +1564,7 @@ class AdminApp extends EgwApp
|
|||||||
{
|
{
|
||||||
if(button == Et2Dialog.YES_BUTTON)
|
if(button == Et2Dialog.YES_BUTTON)
|
||||||
{
|
{
|
||||||
egw.json('admin_account::ajax_delete_group', [account_id]).sendRequest(false); // false = synchronious request
|
egw.json('admin_account::ajax_delete_group', [account_id, [], _widget.getInstanceManager().etemplate_exec_id]).sendRequest(false); // false = synchronious request
|
||||||
window.close();
|
window.close();
|
||||||
}
|
}
|
||||||
}, this.egw.lang('Delete this group') + '?');
|
}, this.egw.lang('Delete this group') + '?');
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
namespace EGroupware\Admin;
|
namespace EGroupware\Admin;
|
||||||
|
|
||||||
|
use admin_cmd_edit_group;
|
||||||
use EGroupware\Api;
|
use EGroupware\Api;
|
||||||
use EGroupware\Api\Framework;
|
use EGroupware\Api\Framework;
|
||||||
use EGroupware\Api\Egw;
|
use EGroupware\Api\Egw;
|
||||||
@ -303,6 +304,7 @@ class Groups
|
|||||||
$msg = $cmd->run();
|
$msg = $cmd->run();
|
||||||
return $cmd->account;
|
return $cmd->account;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check entered data and return error-msg via json data or null
|
* Check entered data and return error-msg via json data or null
|
||||||
*
|
*
|
||||||
|
@ -709,7 +709,8 @@ egwAction.prototype._check_confirm = function(_senders, _target)
|
|||||||
{
|
{
|
||||||
if(this.data.policy_confirmation && egw.app('policy'))
|
if(this.data.policy_confirmation && egw.app('policy'))
|
||||||
{
|
{
|
||||||
egw.includeJS(egw.link('/policy/js/app.js'), function() {
|
egw.includeJS(egw.link('/policy/js/app.min.js'), function ()
|
||||||
|
{
|
||||||
if (typeof app.policy === 'undefined' || typeof app.policy.confirm === 'undefined')
|
if (typeof app.policy === 'undefined' || typeof app.policy.confirm === 'undefined')
|
||||||
{
|
{
|
||||||
app.policy = new app.classes.policy();
|
app.policy = new app.classes.policy();
|
||||||
|
Loading…
Reference in New Issue
Block a user