From 04f64eadc791d7185cccb7281d16daffc9fcfb8a Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 28 Apr 2016 14:22:31 -0400 Subject: [PATCH] Update issues_show_hook_listener.rb --- lib/issues_show_hook_listener.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/issues_show_hook_listener.rb b/lib/issues_show_hook_listener.rb index 7cbc37a..9a7021b 100644 --- a/lib/issues_show_hook_listener.rb +++ b/lib/issues_show_hook_listener.rb @@ -21,7 +21,9 @@ class IssuesShowHookListener < Redmine::Hook::ViewListener issue = context[:issue] # Check to see if there is a quickbooks user attached to the issue - customer = issue.customer ? issue.customer.name : nil + if issue.customer + customer = link_to issue.customer, issue.customer.name + end # Check to see if there is a quickbooks item attached to the issue item = issue.qbo_item ? issue.qbo_item.name : nil