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:
@@ -38,9 +38,9 @@ class IssuesShowHookListener < Redmine::Hook::ViewListener
|
|||||||
invoice_link = link_to invoice, "#{Redmine::Utils::relative_url_root }/qbo/invoice/#{issue.qbo_invoice.id}", :target => "_blank"
|
invoice_link = link_to invoice, "#{Redmine::Utils::relative_url_root }/qbo/invoice/#{issue.qbo_invoice.id}", :target => "_blank"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
if issue.vehicles_id
|
||||||
v = Vehicle.find_by_id(issue.vehicles_id)
|
v = Vehicle.find_by_id(issue.vehicles_id)
|
||||||
if v?
|
|
||||||
#vehicle = v ? v.to_s : nil
|
|
||||||
vehicle = link_to v.to_s, "#{Redmine::Utils::relative_url_root }/vehicles/#{v.id}",
|
vehicle = link_to v.to_s, "#{Redmine::Utils::relative_url_root }/vehicles/#{v.id}",
|
||||||
vin = v ? v.vin
|
vin = v ? v.vin
|
||||||
notes = v.notes
|
notes = v.notes
|
||||||
|
|||||||
Reference in New Issue
Block a user