mirror of
https://github.com/ansible/awx.git
synced 2026-03-04 10:11:05 -03:30
Fix LDAP_GROUP_TYPE_PARAMS revert value
This commit is contained in:
@@ -338,7 +338,6 @@ export default [
|
||||
Wait('start');
|
||||
var payload = {};
|
||||
payload[key] = $scope.configDataResolve[key].default;
|
||||
|
||||
ConfigurationService.patchConfiguration(payload)
|
||||
.then(function() {
|
||||
$scope[key] = $scope.configDataResolve[key].default;
|
||||
@@ -361,10 +360,13 @@ export default [
|
||||
else if($scope[key + '_field'].hasOwnProperty('codeMirror')){
|
||||
const isLdap = (key.indexOf("AUTH_LDAP") !== -1);
|
||||
|
||||
const isLdapGroupTypeParams = isLdap && (key.indexOf("GROUP_TYPE_PARAMS") !== -1);
|
||||
const isLdapUserSearch = isLdap && (key.indexOf("USER_SEARCH") !== -1);
|
||||
const isLdapGroupSearch = isLdap && (key.indexOf("GROUP_SEARCH") !== -1);
|
||||
|
||||
if (isLdapUserSearch || isLdapGroupSearch) {
|
||||
if (isLdapGroupTypeParams) {
|
||||
$scope[key] = JSON.stringify($scope.configDataResolve[key].default);
|
||||
} else if (isLdapUserSearch || isLdapGroupSearch) {
|
||||
$scope[key] = '[]';
|
||||
} else {
|
||||
$scope[key] = '{}';
|
||||
@@ -456,7 +458,6 @@ export default [
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return payload;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user