default playbook for scan job template

when creating a scan job template via the inventory detail page`
This commit is contained in:
Jared Tabor 2015-06-09 16:47:15 -04:00
parent df5a0a76d8
commit 6462d14ace

View File

@ -257,7 +257,9 @@ export function JobTemplatesAdd($scope, $rootScope, $compile, $location, $log, $
master = {},
CloudCredentialList = {},
selectPlaybook, checkSCMStatus,
callback;
callback,
base = $location.path().replace(/^\//, '').split('/')[0],
context = (base === 'job_templates') ? 'job_template' : 'inv';
CallbackHelpInit({ scope: $scope });
$scope.can_edit = true;
@ -491,7 +493,8 @@ export function JobTemplatesAdd($scope, $rootScope, $compile, $location, $log, $
current_item: null,
list: ProjectList,
field: 'project',
input_type: "radio"
input_type: "radio",
autopopulateLookup: (context === 'inv') ? false : true
});
if ($scope.removeSurveySaved) {