From e3614c3012229d0b93cfd118c03de0d3f0e5e68f Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Thu, 8 Nov 2018 12:22:02 -0500 Subject: [PATCH] update to using new inventory id from summary fields of UJT if applicable --- awx/ui/client/src/scheduler/schedulerList.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/client/src/scheduler/schedulerList.controller.js b/awx/ui/client/src/scheduler/schedulerList.controller.js index 185732b194..f53df2f2b3 100644 --- a/awx/ui/client/src/scheduler/schedulerList.controller.js +++ b/awx/ui/client/src/scheduler/schedulerList.controller.js @@ -115,7 +115,7 @@ export default [ stateParams.workflow_job_template_id = item.summary_fields.unified_job_template.id; } else if (item.summary_fields.unified_job_template.unified_job_type === 'inventory_update') { route = 'inventories.edit.inventory_sources.edit.schedules.edit'; - stateParams.inventory_id = parseInt(item.related.inventory.split("/").slice(-2, -1)[0]); + stateParams.inventory_id = item.summary_fields.inventory.id; stateParams.inventory_source_id = item.summary_fields.unified_job_template.id; } else if (item.summary_fields.unified_job_template.unified_job_type === 'system_job') { route = 'managementJobsList.schedule';