resolves kickback on #2976 (#3009)

This commit is contained in:
Leigh Johnson 2016-07-14 15:35:46 -04:00 committed by GitHub
parent 8ed69d1641
commit 4ffc062d19
5 changed files with 7 additions and 1 deletions

View File

@ -392,6 +392,7 @@ export function ProjectsAdd(Refresh, $scope, $rootScope, $compile, $location, $l
master = {};
// remove "type" field from search options
CredentialList = _.cloneDeep(CredentialList);
CredentialList.fields.kind.noSearch = true;
generator.inject(form, { mode: 'add', related: false, scope: $scope });
@ -571,6 +572,7 @@ export function ProjectsEdit($scope, $rootScope, $compile, $location, $log,
relatedSets = {};
// remove "type" field from search options
CredentialList = _.cloneDeep(CredentialList);
CredentialList.fields.kind.noSearch = true;

View File

@ -25,6 +25,7 @@ angular.module('JobTemplatesHelper', ['Utilities'])
return function(params) {
var scope = params.scope,
CredentialList = _.cloneDeep(CredentialList),
defaultUrl = GetBasePath('job_templates'),
// generator = GenerateForm,
form = JobTemplateForm(),

View File

@ -13,6 +13,7 @@
form = GroupForm();
// remove "type" field from search options
CredentialList = _.cloneDeep(CredentialList);
CredentialList.fields.kind.noSearch = true;
$scope.formCancel = function(){

View File

@ -15,6 +15,7 @@
form = GroupForm();
// remove "type" field from search options
CredentialList = _.cloneDeep(CredentialList);
CredentialList.fields.kind.noSearch = true;
$scope.formCancel = function(){

View File

@ -47,6 +47,7 @@ export default
choicesCount = 0;
// remove "type" field from search options
CredentialList = _.cloneDeep(CredentialList);
CredentialList.fields.kind.noSearch = true;
CallbackHelpInit({ scope: $scope });
@ -471,7 +472,7 @@ export default
});
}
else {
// job template doesn't exist
// job template doesn't exist
$scope.$emit("choicesReady");
}