update to using new inventory id from summary fields of UJT if applicable

This commit is contained in:
John Mitchell 2018-11-08 12:22:02 -05:00
parent f37391397e
commit e3614c3012
No known key found for this signature in database
GPG Key ID: FE6A9B5BD4EB5C94

View File

@ -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';