Don't send null fields in app management and clarify the fields

This commit is contained in:
Joseph Schorr 2014-03-24 18:18:35 -04:00
parent f7c27f250b
commit 10004192d7
2 changed files with 11 additions and 3 deletions

View file

@ -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;