From cca8f13a2f0f9bb86e840e189cb7754f603b3774 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Thu, 20 Apr 2017 12:34:47 -0700 Subject: [PATCH] fixing sources-add function the params were being sent as a nested function. --- .../src/inventories/sources/add/sources-add.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/client/src/inventories/sources/add/sources-add.controller.js b/awx/ui/client/src/inventories/sources/add/sources-add.controller.js index ecfe09940f..32dc70a7e6 100644 --- a/awx/ui/client/src/inventories/sources/add/sources-add.controller.js +++ b/awx/ui/client/src/inventories/sources/add/sources-add.controller.js @@ -108,7 +108,7 @@ export default ['$state', '$stateParams', '$scope', 'SourcesFormDefinition', // // and pass the related endpoint // _.assign(params, { group: res.data.id }), res.data.related.inventory_source)) // .then(res => $state.go('inventoryManage.editGroup', { group_id: res.data.group }, { reload: true })); - SourcesService.post({params}).then(function(){ + SourcesService.post(params).then(function(){ $state.go('.', null, {reload: true}); }); // break;