mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 01:14:23 -05:00
Update issues_show_hook_listener.rb
This commit is contained in:
@@ -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 "
|
||||
<div class=\"attributes\">
|
||||
|
||||
<div class=\"qbo_customer_id attribute\">
|
||||
<div class=\"customer_id attribute\">
|
||||
<div class=\"label\"><span>Customer</span>:</div>
|
||||
<div class=\"value\">#{customer}</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user