From fd616190631583e80ab0a68763e7181d55e83b63 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Fri, 22 Apr 2016 10:18:15 -0700 Subject: [PATCH] Fix for notification lookup on inv_sources --- .../directive/manage-groups.directive.controller.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/awx/ui/client/src/inventories/manage/manage-groups/directive/manage-groups.directive.controller.js b/awx/ui/client/src/inventories/manage/manage-groups/directive/manage-groups.directive.controller.js index a242c999ea..0b57ddbf1e 100644 --- a/awx/ui/client/src/inventories/manage/manage-groups/directive/manage-groups.directive.controller.js +++ b/awx/ui/client/src/inventories/manage/manage-groups/directive/manage-groups.directive.controller.js @@ -37,6 +37,7 @@ function manageGroupsDirectiveController($filter, $location, $log, Rest.get() .success(function(data) { group = data; + $scope.source_id = data.related.inventory_source.split('/')[4]; for (var fld in form.fields) { if (data[fld]) { $scope[fld] = data[fld]; @@ -44,10 +45,8 @@ function manageGroupsDirectiveController($filter, $location, $log, } } if(mode === 'edit') { - // schedules_url = data.related.inventory_source + 'schedules/'; $scope.variable_url = data.related.variable_data; $scope.source_url = data.related.inventory_source; - $scope.source_id = $scope.source_url.split('/')[4]; $scope.$emit('LoadSourceData'); } })