From 60e41ac61a454a9ecacd6ad5ae4ae7ab1a10cd90 Mon Sep 17 00:00:00 2001 From: Michael Abashian Date: Mon, 30 Jan 2017 11:23:29 -0500 Subject: [PATCH] Fix for templates socket message jumping user back to page 1 when they were on a different page. --- awx/ui/client/src/templates/list/templates-list.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/client/src/templates/list/templates-list.controller.js b/awx/ui/client/src/templates/list/templates-list.controller.js index 7ed77de7d4..a308a4c3ca 100644 --- a/awx/ui/client/src/templates/list/templates-list.controller.js +++ b/awx/ui/client/src/templates/list/templates-list.controller.js @@ -77,7 +77,7 @@ export default ['$scope', '$rootScope', '$location', '$stateParams', 'Rest', // attempts to transition the state and they were squashing each other. let path = GetBasePath(list.basePath) || GetBasePath(list.name); - qs.search(path, $stateParams[`${list.iterator}_search`]) + qs.search(path, $state.params[`${list.iterator}_search`]) .then(function(searchResponse) { $scope[`${list.iterator}_dataset`] = searchResponse.data; $scope[list.name] = $scope[`${list.iterator}_dataset`].results;