mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 23:17:32 -02:30
Setting the local var CredentialList to the deep clone seems to be problematic. Moving this out so that the original object itself is overwritten which is how it's done in other places. (#3017)
This commit is contained in:
committed by
Leigh Johnson
parent
fc304899bd
commit
8c85035d18
@@ -25,7 +25,6 @@ angular.module('JobTemplatesHelper', ['Utilities'])
|
||||
return function(params) {
|
||||
|
||||
var scope = params.scope,
|
||||
CredentialList = _.cloneDeep(CredentialList),
|
||||
defaultUrl = GetBasePath('job_templates'),
|
||||
// generator = GenerateForm,
|
||||
form = JobTemplateForm(),
|
||||
@@ -37,6 +36,8 @@ angular.module('JobTemplatesHelper', ['Utilities'])
|
||||
// checkSCMStatus, getPlaybooks, callback,
|
||||
// choicesCount = 0;
|
||||
|
||||
CredentialList = _.cloneDeep(CredentialList);
|
||||
|
||||
// The form uses awPopOverWatch directive to 'watch' scope.callback_help for changes. Each time the
|
||||
// popover is activated, a function checks the value of scope.callback_help before constructing the content.
|
||||
scope.setCallbackHelp = function() {
|
||||
|
||||
Reference in New Issue
Block a user