From d0d8ce9057448310d2d7f12eabaf29ca8b497c28 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 17 Mar 2014 15:04:12 -0400 Subject: [PATCH] Only specify activating_user field if one is actually needed --- static/js/app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/js/app.js b/static/js/app.js index ce9ce5e4b..03ca9d383 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -1795,11 +1795,14 @@ quayApp.directive('prototypeManager', function () { }; var data = { - 'activating_user': $scope.newForWholeOrg ? null : $scope.activatingForNew, 'delegate': $scope.delegateForNew, 'role': $scope.newRole }; + if (!$scope.newForWholeOrg) { + data['activating_user'] = $scope.activatingForNew; + } + ApiService.createOrganizationPrototypePermission(data, params).then(function(resp) { $scope.prototypes.push(resp); $scope.loading = false;