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