Update issues_form_hook_listener.rb

This commit is contained in:
2016-04-22 13:18:05 -04:00
parent b8002df5af
commit 0a167c33ee

View File

@@ -39,7 +39,7 @@ class IssuesFormHookListener < Redmine::Hook::ViewListener
#@estimates_link = link_to qbo_update_estimates_path
#render_on :view_issues_form_details_bottom, :partial => 'hooks/redmine_qbo/vehicles/dropdown'
vehicle = f.collection_select :vehicle_id, customer.vehicles.order(:year), :id, :VIN, include_blank: true, :selected => vehicle if context[:issue].vehicle
vehicle = f.collection_select :vehicle_id, customer.vehicles.order(:year), :id, :VIN, include_blank: true, :selected => vehicle
return "<p>#{select_customer}</p> <p>#{select_item}</p> <p>#{select_invoice}</p> <p>#{select_estimate}</p> <p>#{vehicle}</p>"
end