diff --git a/lib/issues_show_hook_listener.rb b/lib/issues_show_hook_listener.rb index fbdc2dd..1301be3 100644 --- a/lib/issues_show_hook_listener.rb +++ b/lib/issues_show_hook_listener.rb @@ -19,12 +19,16 @@ class IssuesShowHookListener < Redmine::Hook::ViewListener # Display the quickbooks contact in the issue def view_issues_show_details_bottom(context={}) issue = context[:issue] + + issue_fields_rows do |rows| - # 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' + # 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 + end # Estimate Number