From 58f322ec0b6a1620ac942602399ca37011df6f9b Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Tue, 14 Jun 2016 14:16:18 -0400 Subject: [PATCH] fix job templates deletion on edit --- .../src/job-templates/list/job-templates-list.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/client/src/job-templates/list/job-templates-list.controller.js b/awx/ui/client/src/job-templates/list/job-templates-list.controller.js index 31c2f1739c..fe477baa79 100644 --- a/awx/ui/client/src/job-templates/list/job-templates-list.controller.js +++ b/awx/ui/client/src/job-templates/list/job-templates-list.controller.js @@ -77,7 +77,7 @@ export default Rest.setUrl(url); Rest.destroy() .success(function () { - if (parseInt($state.params.template_id) === id) { + if (parseInt($state.params.id) === id) { $state.go("^", null, {reload: true}); } else { $scope.search(list.iterator);