diff --git a/lib/redmine_qbo/patches/query_patch.rb b/lib/redmine_qbo/patches/query_patch.rb index 2794927..29209a9 100644 --- a/lib/redmine_qbo/patches/query_patch.rb +++ b/lib/redmine_qbo/patches/query_patch.rb @@ -26,7 +26,7 @@ module RedmineQbo # Add customers to filters def initialize_available_filters - #add_available_filter "customer", type: :text + add_available_filter "customer_id", type: :list, name: l(:field_customer), :values => lambda {Customer.pluck(:name, :id).map {|name, id| [name, id.to_s]}} super end