From 291bff08136ce16320c40a0e00f4fac3d0260675 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Sun, 29 May 2016 11:43:35 -0400 Subject: [PATCH] Update query_patch.rb --- lib/query_patch.rb | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/lib/query_patch.rb b/lib/query_patch.rb index d2ecf42..a225aca 100644 --- a/lib/query_patch.rb +++ b/lib/query_patch.rb @@ -44,12 +44,16 @@ module QueryPatch unless @available_filters @available_filters = available_filters_without_qbo - qbo_filters = { - :customer => { - :id => l(:field_customer), - :type => :integer, - :order => @available_filters.size + 1}, - } + #qbo_filters = { + # :customer => { + # :id => l(:field_customer), + # :type => :integer, + # :order => @available_filters.size + 1}, + #} + + qbo_filters = { "customer_id" => { :type => :list_optional, :order => 14, + :values => Customer.find(:all, :order => 'name ASC').collect { |c| [c.name, c.id.to_s]} + }} @available_filters.merge!(qbo_filters) end