Merged in bugfix/PMCORE-2487 (pull request #7573)

PMCORE-2487 Multiple groups are created with the same name when setting up ldap group synchronization

Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
Roly Rudy Gutierrez Pinto
2021-01-25 14:07:32 +00:00
committed by Julio Cesar Laura Avendaño
5 changed files with 97 additions and 40 deletions

View File

@@ -143,6 +143,7 @@ Ext.onReady(function() {
var response = Ext.util.JSON.decode(r.responseText);
if (response.status == 'OK') {
treeGroups.getLoader().load(treeGroups.root);
treeGroups.responseMessage = response;
}
else {
alert(response.message);
@@ -164,7 +165,18 @@ Ext.onReady(function() {
msg: 'All changes have been saved.',
icon: Ext.Msg.INFO,
minWidth: 200,
buttons: Ext.Msg.OK
buttons: Ext.Msg.OK,
fn: function (btn) {
if (btn == 'ok' && treeGroups.responseMessage && treeGroups.responseMessage.warning) {
Ext.Msg.show({
title: _('ID_WARNING'),
msg: treeGroups.responseMessage.warning,
icon: Ext.Msg.INFO,
minWidth: 200,
buttons: Ext.Msg.OK
});
}
}
});
}
});