From 4283b4adfbfeb29499fec369eeea7c039411ba07 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 16 Dec 2016 15:34:03 +0100 Subject: [PATCH] Fixed issue #554 - Overview is not show it organization is used as row and first ticket has no organization (app is not responding anymore). --- app/assets/javascripts/app/controllers/ticket_overview.coffee | 2 ++ .../javascripts/app/controllers/widget/ticket_list.coffee | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/assets/javascripts/app/controllers/ticket_overview.coffee b/app/assets/javascripts/app/controllers/ticket_overview.coffee index a5083ccbc..c7f3ae44d 100644 --- a/app/assets/javascripts/app/controllers/ticket_overview.coffee +++ b/app/assets/javascripts/app/controllers/ticket_overview.coffee @@ -424,11 +424,13 @@ class Table extends App.Controller attribute.link = object.uiUrl() value callbackUserPopover = (value, object, attribute, attributes, refObject) -> + return value if !refObject attribute.class = 'user-popover' attribute.data = id: refObject.id value callbackOrganizationPopover = (value, object, attribute, attributes, refObject) -> + return value if !refObject attribute.class = 'organization-popover' attribute.data = id: refObject.id diff --git a/app/assets/javascripts/app/controllers/widget/ticket_list.coffee b/app/assets/javascripts/app/controllers/widget/ticket_list.coffee index 6856df871..8118af319 100644 --- a/app/assets/javascripts/app/controllers/widget/ticket_list.coffee +++ b/app/assets/javascripts/app/controllers/widget/ticket_list.coffee @@ -16,11 +16,13 @@ class App.TicketList extends App.Controller attribute.link = object.uiUrl() value callbackUserPopover = (value, object, attribute, attributes, refObject) -> + return value if !refObject attribute.class = 'user-popover' attribute.data = id: refObject.id value callbackOrganizationPopover = (value, object, attribute, attributes, refObject) -> + return value if !refObject attribute.class = 'organization-popover' attribute.data = id: refObject.id