From d6b498a20acc398cbad65de2d4a99aa6ea669bb0 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 19 Aug 2013 08:35:24 +0200 Subject: [PATCH] Fixed url and object name. --- .../app/controllers/_dashboard/activity_stream.js.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/app/controllers/_dashboard/activity_stream.js.coffee b/app/assets/javascripts/app/controllers/_dashboard/activity_stream.js.coffee index c495ca7d2..167e149b0 100644 --- a/app/assets/javascripts/app/controllers/_dashboard/activity_stream.js.coffee +++ b/app/assets/javascripts/app/controllers/_dashboard/activity_stream.js.coffee @@ -42,17 +42,17 @@ class App.DashboardActivityStream extends App.Controller for item in items if item.history_object is 'Ticket' ticket = App.Ticket.find( item.o_id ) - item.link = '#ticket_zoom/' + ticket.id + item.link = '#ticket/zoom/' + ticket.id item.title = ticket.title - item.type = item.history_object + item.type = 'Ticket' item.updated_by_id = ticket.updated_by_id item.updated_by = App.User.find( ticket.updated_by_id ) else if item.history_object is 'Ticket::Article' article = App.TicketArticle.find( item.o_id ) ticket = App.Ticket.find( article.ticket_id ) - item.link = '#ticket_zoom/' + ticket.id + '/' + article.od + item.link = '#ticket/zoom/' + ticket.id + '/' + article.id item.title = article.subject || ticket.title - item.type = item.history_object + item.type = 'Article' item.updated_by_id = article.updated_by_id item.updated_by = App.User.find( article.updated_by_id )