mirror of
https://github.com/ansible/awx.git
synced 2026-02-17 19:20:05 -03:30
Merge pull request #2935 from mabashian/2873-first-last
Fixes bug removing first/last name from a user
This commit is contained in:
@@ -140,7 +140,11 @@ export default ['$scope', '$rootScope', '$stateParams', 'UserForm', 'Rest',
|
|||||||
var processNewData = function(fields) {
|
var processNewData = function(fields) {
|
||||||
var data = {};
|
var data = {};
|
||||||
_.forEach(fields, function(value, key) {
|
_.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];
|
data[key] = $scope[key];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user