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
This commit is contained in:
Jean-Philippe Lang 2011-07-09 20:30:51 +00:00
parent e63f0c615c
commit 0bd5e22c81
1 changed files with 2 additions and 0 deletions

View File

@ -664,6 +664,8 @@ class Query < ActiveRecord::Base
options = { :type => :date, :order => 20 } options = { :type => :date, :order => 20 }
when "bool" when "bool"
options = { :type => :list, :values => [[l(:general_text_yes), "1"], [l(:general_text_no), "0"]], :order => 20 } 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" when "user", "version"
next unless project next unless project
options = { :type => :list_optional, :values => field.possible_values_options(project), :order => 20} options = { :type => :list_optional, :values => field.possible_values_options(project), :order => 20}