summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-27 12:23:02 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-27 12:23:02 +0000
commit10a38010fbe7aa001aa3f4cba1af1db67455d81e (patch)
tree334e5553f1e8872a55e48da02a0ede1f3ff96b99 /app
parentb73c42f619591c50da9f7ad549729eefaa7af9bc (diff)
downloadredmine-10a38010fbe7aa001aa3f4cba1af1db67455d81e.tar.gz
redmine-10a38010fbe7aa001aa3f4cba1af1db67455d81e.zip
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
Diffstat (limited to 'app')
-rw-r--r--app/models/query.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/query.rb b/app/models/query.rb
index 5094cc3a9..6a77508df 100644
--- a/app/models/query.rb
+++ b/app/models/query.rb
@@ -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