mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 01:00:44 -04:00
Update issues_show_hook_listener.rb
This commit is contained in:
1 parent
7976c033ad
commit
53629c59c3
1 file changed
+4
-5
@@ -41,11 +41,10 @@ class IssuesShowHookListener < Redmine::Hook::ViewListener
|
||||
end
|
||||
|
||||
|
||||
if issue.vehicles_id
|
||||
v = Vehicle.find_by_id(issue.vehicles_id)
|
||||
vehicle = link_to v.to_s, "#{Redmine::Utils::relative_url_root}/vehicles/#{v.id}"
|
||||
vin = v.vin
|
||||
notes = v.notes
|
||||
if issue.vehicle
|
||||
vehicle = link_to issue.vehicle.to_s, "#{Redmine::Utils::relative_url_root}/vehicles/#{issue.vehicle.id}"
|
||||
vin = issue.vehicle.vin
|
||||
notes = issue.vehicle.notes
|
||||
end
|
||||
|
||||
return "
|
||||
|
||||
Reference in new issue
Block a user