Update issues_form_hook_listener.rb

This commit is contained in:
2016-05-12 09:40:55 -04:00
parent fc6ab6bb4e
commit 72d9bbebd0

View File

@@ -26,7 +26,7 @@ class IssuesFormHookListener < Redmine::Hook::ViewListener
# Generate the drop down list of quickbooks customers # Generate the drop down list of quickbooks customers
Customer.without_callback(:initialize, :after, :pull) do Customer.without_callback(:initialize, :after, :pull) do
@@customer = Customer.find_by_id(@@selected_customer) if @@selected_customer @@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 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