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:
@@ -20,11 +20,15 @@ class IssuesShowHookListener < Redmine::Hook::ViewListener
|
|||||||
def view_issues_show_details_bottom(context={})
|
def view_issues_show_details_bottom(context={})
|
||||||
issue = context[:issue]
|
issue = context[:issue]
|
||||||
|
|
||||||
# Check to see if there is a quickbooks user attached to the issue
|
issue_fields_rows do |rows|
|
||||||
if issue.customer
|
|
||||||
customer = link_to issue.customer.name, "#{Redmine::Utils::relative_url_root}/customers/#{issue.customer.id}"
|
# Check to see if there is a quickbooks user attached to the issue
|
||||||
|
if issue.customer
|
||||||
|
customer = link_to issue.customer.name, "#{Redmine::Utils::relative_url_root}/customers/#{issue.customer.id}"
|
||||||
|
|
||||||
|
customer = rows.left l(:field_customer), customer, :class => 'customer'
|
||||||
|
end
|
||||||
|
|
||||||
customer = rows.left l(:field_customer), customer, :class => 'customer'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Estimate Number
|
# Estimate Number
|
||||||
|
|||||||
Reference in New Issue
Block a user