Test failure with JRuby 1.7.2 (#12228).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11280 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b73c42f619
commit
10a38010fb
|
@ -293,7 +293,8 @@ class Query < ActiveRecord::Base
|
|||
field_type = available_filters[field][:type]
|
||||
operators_by_filter_type[field_type].sort.reverse.detect do |operator|
|
||||
next unless expression =~ /^#{Regexp.escape(operator)}(.*)$/
|
||||
add_filter field, operator, $1.present? ? $1.split('|') : ['']
|
||||
values = $1
|
||||
add_filter field, operator, values.present? ? values.split('|') : ['']
|
||||
end || add_filter(field, '=', expression.split('|'))
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue