diff --git a/ansibleworks/ui/static/lib/ansible/form-generator.js b/ansibleworks/ui/static/lib/ansible/form-generator.js index 92713aeccb..8c23bd80df 100644 --- a/ansibleworks/ui/static/lib/ansible/form-generator.js +++ b/ansibleworks/ui/static/lib/ansible/form-generator.js @@ -611,7 +611,7 @@ angular.module('FormGenerator', ['GeneratorHelpers']) } else { if ((!this.modal) && options.related && this.form.related) { - html += this.buildCollections(); + html += this.buildCollections(options); } } @@ -757,7 +757,7 @@ angular.module('FormGenerator', ['GeneratorHelpers']) return html; }, - buildCollections: function() { + buildCollections: function(options) { // // Create TB accordians with imbedded lists for related collections // Should not be called directly. Called internally by build(). @@ -865,27 +865,7 @@ angular.module('FormGenerator', ['GeneratorHelpers']) base = base.replace(/^\//,''); for (var fld in form.related[itm].fields) { cnt++; - rfield = form.related[itm].fields[fld]; - html += "