Update issues_form_hook_listener.rb

This commit is contained in:
2017-01-29 20:24:06 -05:00
committed by GitHub
parent 52d13ea7bc
commit 5e53c18098

View File

@@ -34,7 +34,7 @@ class IssuesFormHookListener < Redmine::Hook::ViewListener
include_blank: true,
onchange: "$customerSelected;"
search_customer = f.autocomplete_field :customer_id, autocomplete_customer_name_customers_path, :id_element => '#customer_id'
search_customer = f.autocomplete_field :customer_id, autocomplete_customer_name_customers_path, :id_element => '#customer_id', :update_elements => {:id => '#customer_id'}
# Generate the drop down list of quickbooks extimates
select_estimate = f.select :qbo_estimate_id, QboEstimate.all.pluck(:doc_number, :id).sort! {|x, y| y <=> x}, :selected => selected_estimate, include_blank: true