mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 09:24:23 -05:00
Update issues_show_hook_listener.rb
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user