From 4155547fb926cadae6cb1c8e80407f493ca8c5d1 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 28 Apr 2016 12:03:28 -0400 Subject: [PATCH] Update issues_show_hook_listener.rb --- lib/issues_show_hook_listener.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/issues_show_hook_listener.rb b/lib/issues_show_hook_listener.rb index 11b24c8..7cbc37a 100644 --- a/lib/issues_show_hook_listener.rb +++ b/lib/issues_show_hook_listener.rb @@ -21,7 +21,7 @@ class IssuesShowHookListener < Redmine::Hook::ViewListener issue = context[:issue] # Check to see if there is a quickbooks user attached to the issue - customer = issue.qbo_customer ? issue.qbo_customer.name : nil + customer = issue.customer ? issue.customer.name : nil # Check to see if there is a quickbooks item attached to the issue item = issue.qbo_item ? issue.qbo_item.name : nil @@ -49,7 +49,7 @@ class IssuesShowHookListener < Redmine::Hook::ViewListener return "
-
+
Customer:
#{customer}