From b4255135c40b15ec1b556bf3aaa128f7dea1a6d3 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Wed, 13 Apr 2016 12:21:46 -0400 Subject: [PATCH] Update query_patch.rb Fixed Filter --- lib/query_patch.rb | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/query_patch.rb b/lib/query_patch.rb index fd4e7fd..5fac795 100644 --- a/lib/query_patch.rb +++ b/lib/query_patch.rb @@ -42,9 +42,15 @@ module QueryPatch def available_filters_with_qbo return @available_filters if @available_filters - @available_filters = available_filters_without_qbo - @available_filters.add "customer", :type => :text - return @available_filters + @available_filters = available_filters_without_qbo + + qbo_filters = { + "customer" => { + :name => l(:field_qbo_customer), + :type => :text, + :order => @available_filters.size + 1}, + } + return @available_filters.merge!(qbo_filters) end end end