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:
@@ -41,16 +41,19 @@ module QueryPatch
|
|||||||
end
|
end
|
||||||
|
|
||||||
def available_filters_with_qbo
|
def available_filters_with_qbo
|
||||||
return @available_filters if @available_filters
|
unless @available_filters
|
||||||
@available_filters = available_filters_without_qbo
|
@available_filters = available_filters_without_qbo
|
||||||
|
|
||||||
qbo_filters = {
|
qbo_filters = {
|
||||||
"customer" => {
|
"customer" => {
|
||||||
:name => l(:field_qbo_customer),
|
:name => l(:field_qbo_customer),
|
||||||
:type => :text,
|
:type => :text,
|
||||||
:order => @available_filters.size + 1},
|
:order => @available_filters.size + 1},
|
||||||
}
|
}
|
||||||
return @available_filters.merge!(qbo_filters)
|
|
||||||
|
@available_filters.merge!(qbo_filters)
|
||||||
|
end
|
||||||
|
@available_filters
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user