mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 01:14:23 -05:00
Update issues_form_hook_listener.rb
This commit is contained in:
@@ -24,9 +24,9 @@ class IssuesFormHookListener < Redmine::Hook::ViewListener
|
|||||||
vehicle = context[:issue].vehicles_id
|
vehicle = context[:issue].vehicles_id
|
||||||
|
|
||||||
# Generate the drop down list of quickbooks customers
|
# Generate the drop down list of quickbooks customers
|
||||||
Customer.without_callback(:initialize, :after, :pull) do |c|
|
Customer.without_callback(:initialize, :after, :pull) do
|
||||||
customer = c.find_by_id(selected_customer) if selected_customer
|
customer = Customer.find_by_id(selected_customer) if selected_customer
|
||||||
select_customer = f.select :customer_id, c.all.pluck(:name, :id).sort, :selected => selected_customer, include_blank: true
|
select_customer = f.select :customer_id, Customer.all.pluck(:name, :id).sort, :selected => selected_customer, include_blank: true
|
||||||
end
|
end
|
||||||
|
|
||||||
# Generate the drop down list of quickbooks items
|
# Generate the drop down list of quickbooks items
|
||||||
|
|||||||
Reference in New Issue
Block a user