mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 08:54:23 -05:00
Update issues_form_hook_listener.rb
This commit is contained in:
@@ -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 = context[:issue].vehicle ? f.collection_select :vehicle_id, customer.vehicles.order(:year), :id, :VIN, include_blank: true, :selected => vehicle : nil
|
||||
vehicle = f.collection_select :vehicle_id, customer.vehicles.order(:year), :id, :VIN, include_blank: true, :selected => vehicle if context[:issue].vehicle
|
||||
|
||||
return "<p>#{select_customer}</p> <p>#{select_item}</p> <p>#{select_invoice}</p> <p>#{select_estimate}</p> <p>#{vehicle}</p>"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user