diff --git a/ansibleworks/ui/static/js/controllers/Inventories.js b/ansibleworks/ui/static/js/controllers/Inventories.js index d81822a020..9f758dbec9 100644 --- a/ansibleworks/ui/static/js/controllers/Inventories.js +++ b/ansibleworks/ui/static/js/controllers/Inventories.js @@ -230,6 +230,13 @@ function InventoriesEdit ($scope, $rootScope, $compile, $location, $log, $routeP scope.createButtonShow = false; scope.search(scope.relatedSets['hosts'].iterator); TreeInit(scope.TreeParams); + LookUpInit({ + scope: scope, + form: form, + current_item: (scope.organization) ? scope.organization : null, + list: OrganizationList, + field: 'organization' + }); }); LoadInventory({ scope: scope }); @@ -302,7 +309,7 @@ function InventoriesEdit ($scope, $rootScope, $compile, $location, $log, $routeP }); }; - + scope.treeController = function($node) { var nodeType = $($node).attr('type'); if (nodeType == 'inventory') {