Update issues_show_hook_listener.rb

This commit is contained in:
2016-04-28 14:22:31 -04:00
parent b5b30b2b03
commit 04f64eadc7

View File

@@ -21,7 +21,9 @@ class IssuesShowHookListener < Redmine::Hook::ViewListener
issue = context[:issue] issue = context[:issue]
# Check to see if there is a quickbooks user attached to the 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 # Check to see if there is a quickbooks item attached to the issue
item = issue.qbo_item ? issue.qbo_item.name : nil item = issue.qbo_item ? issue.qbo_item.name : nil