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:
@@ -24,9 +24,9 @@ class IssuesFormHookListener < Redmine::Hook::ViewListener
|
||||
vehicle = context[:issue].vehicles_id
|
||||
|
||||
# Generate the drop down list of quickbooks customers
|
||||
Customer.without_callback(:initialize, :after, :pull) do |c|
|
||||
customer = c.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
|
||||
Customer.without_callback(:initialize, :after, :pull) do
|
||||
customer = Customer.find_by_id(selected_customer) if selected_customer
|
||||
select_customer = f.select :customer_id, Customer.all.pluck(:name, :id).sort, :selected => selected_customer, include_blank: true
|
||||
end
|
||||
|
||||
# Generate the drop down list of quickbooks items
|
||||
|
||||
Reference in New Issue
Block a user