Commit ddea4369 authored by jplang's avatar jplang

Test failure with JRuby 1.7.2 (#12228).

git-svn-id: https://svn.redmine.org/redmine/trunk@11280 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent dd6dea94
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment