From 86ebae98c3c083516b9fb8f5616fd1d18aef3b74 Mon Sep 17 00:00:00 2001 From: Britney Wright Date: Tue, 12 Feb 2019 16:15:56 -0500 Subject: [PATCH] correctly clear ownerGroupId in new batch change form (#482) --- .../public/lib/batch-change/batch-change-new.controller.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/portal/public/lib/batch-change/batch-change-new.controller.js b/modules/portal/public/lib/batch-change/batch-change-new.controller.js index 56e6c2494..9bae20510 100644 --- a/modules/portal/public/lib/batch-change/batch-change-new.controller.js +++ b/modules/portal/public/lib/batch-change/batch-change-new.controller.js @@ -56,6 +56,9 @@ $scope.processing = true; var payload = $scope.newBatch; + if (!$scope.newBatch.ownerGroupId) { + delete payload.ownerGroupId + } function success(response) { var alert = utilityService.success('Successfully Created Batch Change', response, 'createBatchChange: createBatchChange successful');