Merge pull request #2873 from anoek/2803

Quick fix for 403 when editing groups with cloud credentials you don't have access to
This commit is contained in:
Akita Noek 2016-07-08 12:14:11 -04:00 committed by GitHub
commit 6cb83052b4

View File

@ -247,7 +247,7 @@
{inventory_script: inventorySourceData.source_script}
);
if (inventorySourceData.credential){
GroupManageService.getCredential(inventorySourceData.credential).then(res => $scope.credential_name = res.data.name);
$scope.credential_name = inventorySourceData.summary_fields.credential.name;
}
$scope = angular.extend($scope, groupData);