mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 19:10:07 -03:30
Fixes bug removing first/last name from a user
This commit is contained in:
parent
b742746e5d
commit
4781df62ec
@ -140,7 +140,11 @@ export default ['$scope', '$rootScope', '$stateParams', 'UserForm', 'Rest',
|
||||
var processNewData = function(fields) {
|
||||
var data = {};
|
||||
_.forEach(fields, function(value, key) {
|
||||
if ($scope[key] !== '' && $scope[key] !== null && $scope[key] !== undefined) {
|
||||
if (value.type === 'sensitive') {
|
||||
if ($scope[key] !== '' && $scope[key] !== null && $scope[key] !== undefined) {
|
||||
data[key] = $scope[key];
|
||||
}
|
||||
} else {
|
||||
data[key] = $scope[key];
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user