diff --git a/awx/ui/client/src/controllers/Projects.js b/awx/ui/client/src/controllers/Projects.js index 5650500088..911ebcf356 100644 --- a/awx/ui/client/src/controllers/Projects.js +++ b/awx/ui/client/src/controllers/Projects.js @@ -204,12 +204,12 @@ export function ProjectsList ($scope, $rootScope, $location, $log, $stateParams, $scope.removeGoToJobDetails(); } $scope.removeGoToJobDetails = $scope.$on('GoToJobDetails', function(e, data) { - if (data.related.current_update || data.related.last_update) { + if (data.summary_fields.current_update || data.summary_fields.last_update) { Wait('start'); - // Pull the id out of the URL - var id = (data.related.current_update) ? data.related.current_update.replace(/^\//, '').split('/')[3] : data.related.last_update.replace(/^\//, '').split('/')[3]; + // Grab the id from summary_fields + var id = (data.summary_fields.current_update) ? data.summary_fields.current_update.id : data.summary_fields.last_update.id; $state.go('scmUpdateStdout', {id: id}); diff --git a/awx/ui/client/src/helpers/Groups.js b/awx/ui/client/src/helpers/Groups.js index b366a02a50..1ff3d391f4 100644 --- a/awx/ui/client/src/helpers/Groups.js +++ b/awx/ui/client/src/helpers/Groups.js @@ -79,7 +79,7 @@ angular.module('GroupsHelper', [ 'RestServices', 'Utilities', listGenerator.name scope.removeSourceReady = scope.$on('SourceReady', function(e, source) { // Pull the ID out of related.current_update / related.last_update - var update_id = (source.current_update) ? source.related.current_update.replace(/^\//, '').split('/')[3] : source.related.last_update.replace(/^\//, '').split('/')[3]; + var update_id = (source.current_update) ? source.summary_fields.current_update.id : source.summary_fields.last_update.id; $state.go('inventorySyncStdout', {id: update_id});