mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 11:41:08 -03:30
Add clone of list objects for each state definition
This commit is contained in:
@@ -18,8 +18,6 @@ function LegacyCredentialsService (pathService) {
|
||||
},
|
||||
'list@credentials': {
|
||||
templateProvider: function(CredentialList, generateList) {
|
||||
CredentialList.iterator = 'credential';
|
||||
|
||||
let html = generateList.build({
|
||||
list: CredentialList,
|
||||
mode: 'edit'
|
||||
|
||||
@@ -738,8 +738,9 @@ function($injector, $stateExtender, $log, i18n) {
|
||||
},
|
||||
resolve: {
|
||||
ListDefinition: [field.list, function(list) {
|
||||
list.iterator = field.sourceModel;
|
||||
return list;
|
||||
let listClone = _.cloneDeep(list);
|
||||
listClone.iterator = field.sourceModel;
|
||||
return listClone;
|
||||
}],
|
||||
OrganizationId: ['ListDefinition', 'InventoriesService', '$stateParams', '$rootScope',
|
||||
function(list, InventoriesService, $stateParams, $rootScope){
|
||||
|
||||
Reference in New Issue
Block a user