From: Jean-Philippe Lang Date: Sat, 9 Jul 2011 20:30:51 +0000 (+0000) Subject: Numeric operators for custom fields in query filters (#6180). X-Git-Tag: 1.3.0~1710 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0bd5e22c81eca3e4aaa60f91823ccf3c12846f4e;p=redmine.git 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 --- 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}