From abb2e93bb689956ef1a153cfa6640e92c1c811d6 Mon Sep 17 00:00:00 2001 From: jaredevantabor Date: Thu, 12 Jan 2017 16:29:51 -0800 Subject: [PATCH] fixing copy/move hosts, and the search for that route --- .../src/inventories/manage/copy-move/copy-move.route.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/awx/ui/client/src/inventories/manage/copy-move/copy-move.route.js b/awx/ui/client/src/inventories/manage/copy-move/copy-move.route.js index e4a7534be8..b93e5e1e0f 100644 --- a/awx/ui/client/src/inventories/manage/copy-move/copy-move.route.js +++ b/awx/ui/client/src/inventories/manage/copy-move/copy-move.route.js @@ -66,7 +66,7 @@ var copyMoveHostRoute = { resolve: { Dataset: ['CopyMoveGroupList', 'QuerySet', '$stateParams', 'GetBasePath', function(list, qs, $stateParams, GetBasePath) { - let path = GetBasePath(list.name); + let path = GetBasePath('inventory') + $stateParams.inventory_id + '/hosts/'; return qs.search(path, $stateParams.copy_search); } ], @@ -80,7 +80,9 @@ var copyMoveHostRoute = { controller: CopyMoveHostsController, }, 'copyMoveList@inventoryManage.copyMoveHost': { - templateProvider: function(CopyMoveGroupList, generateList) { + templateProvider: function(CopyMoveGroupList, generateList, $stateParams, GetBasePath) { + let list = CopyMoveGroupList; + list.basePath = GetBasePath('inventory') + $stateParams.inventory_id + '/hosts/'; let html = generateList.build({ list: CopyMoveGroupList, mode: 'lookup',