From b618d9223ff482d9171f5677b3f1cdf7da76ef4e Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Mon, 6 Apr 2015 11:51:07 -0400 Subject: [PATCH] fixed reset from deleting the provided host pattern from the inventory page. --- awx/ui/static/js/controllers/Adhoc.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/awx/ui/static/js/controllers/Adhoc.js b/awx/ui/static/js/controllers/Adhoc.js index 9aa94a2e85..ef6954bfe8 100644 --- a/awx/ui/static/js/controllers/Adhoc.js +++ b/awx/ui/static/js/controllers/Adhoc.js @@ -60,6 +60,7 @@ export function AdhocForm($scope, $rootScope, $location, $routeParams, // pre-populate hostPatterns from the inventory page and // delete the value off of rootScope $scope.limit = $rootScope.hostPatterns || "all"; + $scope.providedHostPatterns = $scope.limit; delete $rootScope.hostPatterns; if ($scope.removeChoicesReady) { @@ -159,6 +160,7 @@ export function AdhocForm($scope, $rootScope, $location, $routeParams, for (var fld in master) { $scope[fld] = master[fld]; } + $scope.limit = $scope.providedHostPatterns; KindChange({ scope: $scope, form: form, reset: false }); OwnerChange({ scope: $scope }); LoginMethodChange({ scope: $scope });