diff --git a/lib/issues_show_hook_listener.rb b/lib/issues_show_hook_listener.rb index 4845e04..4d05abf 100644 --- a/lib/issues_show_hook_listener.rb +++ b/lib/issues_show_hook_listener.rb @@ -21,14 +21,10 @@ class IssuesShowHookListener < Redmine::Hook::ViewListener issue = context[:issue] # Check to see if there is a quickbooks user attached to the issue - unless issue.qbo_customer.nil? - @customer = issue.qbo_customer.name - end - + @customer = issue.qbo_customer.name unless issue.qbo_customer.nil? + # Check to see if there is a quickbooks item attached to the issue - unless issue.qbo_item.nil? - @item = issue.qbo_item.name - end + @item = issue.qbo_item.name unless issue.qbo_item.nil? # Estimate Number unless (issue.qbo_estimate.nil?) @@ -38,21 +34,21 @@ class IssuesShowHookListener < Redmine::Hook::ViewListener end return "