mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Update query_patch.rb
This commit is contained in:
@@ -44,12 +44,16 @@ module QueryPatch
|
|||||||
unless @available_filters
|
unless @available_filters
|
||||||
@available_filters = available_filters_without_qbo
|
@available_filters = available_filters_without_qbo
|
||||||
|
|
||||||
qbo_filters = {
|
#qbo_filters = {
|
||||||
:customer => {
|
# :customer => {
|
||||||
:id => l(:field_customer),
|
# :id => l(:field_customer),
|
||||||
:type => :integer,
|
# :type => :integer,
|
||||||
:order => @available_filters.size + 1},
|
# :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)
|
@available_filters.merge!(qbo_filters)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user