From 0bd5e22c81eca3e4aaa60f91823ccf3c12846f4e Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 9 Jul 2011 20:30:51 +0000 Subject: [PATCH] Numeric operators for custom fields in query filters (#6180). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6213 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/query.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/query.rb b/app/models/query.rb index a6fbe9b94..2b0776cbe 100644 --- a/app/models/query.rb +++ b/app/models/query.rb @@ -664,6 +664,8 @@ class Query < ActiveRecord::Base options = { :type => :date, :order => 20 } when "bool" options = { :type => :list, :values => [[l(:general_text_yes), "1"], [l(:general_text_no), "0"]], :order => 20 } + when "int", "float" + options = { :type => :integer, :order => 20 } when "user", "version" next unless project options = { :type => :list_optional, :values => field.possible_values_options(project), :order => 20}