diff --git a/lib/query_patch.rb b/lib/query_patch.rb index 826a780..96a2f99 100644 --- a/lib/query_patch.rb +++ b/lib/query_patch.rb @@ -53,10 +53,10 @@ module QueryPatch qbo_filters = { "customer_id" => { - :id => l(:field_customer), + :id => l(:customer_id), :type => :list_optional, :order => @available_filters.size + 1, - #:values => Customer.find(:all, :order => 'name ASC').collect { |c| [c.name, c.id.to_s]} + :values => Customer.find(:all).sort(:name).collect { |c| [c.name, c.id.to_s]} } }