mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 08:54:23 -05:00
Update query_patch.rb
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user