Don't send null fields in app management and clarify the fields
This commit is contained in:
parent
f7c27f250b
commit
10004192d7
2 changed files with 11 additions and 3 deletions
|
@ -2484,6 +2484,14 @@ function ManageApplicationCtrl($scope, $routeParams, $rootScope, $location, $tim
|
|||
'client_id': clientId
|
||||
};
|
||||
|
||||
if (!$scope.application['description']) {
|
||||
delete $scope.application['description'];
|
||||
}
|
||||
|
||||
if (!$scope.application['gravatar_email']) {
|
||||
delete $scope.application['gravatar_email'];
|
||||
}
|
||||
|
||||
ApiService.updateOrganizationApplication($scope.application, params).then(function(resp) {
|
||||
$scope.application = resp;
|
||||
$scope.updating = false;
|
||||
|
|
Reference in a new issue