diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-01-10 11:06:27 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-01-10 11:06:27 +0000 |
commit | a77d884157439c226342e789f13bd6bfe8dd4227 (patch) | |
tree | 3c1defe4bbcb7625df2b799cf4cfa85e772e7573 /lib/redmine/field_format.rb | |
parent | aca5bfdc05c20eb6eb39c2a5449548a2ad363474 (diff) | |
download | redmine-a77d884157439c226342e789f13bd6bfe8dd4227.tar.gz redmine-a77d884157439c226342e789f13bd6bfe8dd4227.zip |
Fixed: Redmine::FieldFormat::IntFormat does not accept "real" Integer values (#18781).
git-svn-id: http://svn.redmine.org/redmine/trunk@13863 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/field_format.rb')
-rw-r--r-- | lib/redmine/field_format.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/field_format.rb b/lib/redmine/field_format.rb index 34591bb5f..7ccc0ffc7 100644 --- a/lib/redmine/field_format.rb +++ b/lib/redmine/field_format.rb @@ -368,7 +368,7 @@ module Redmine def validate_single_value(custom_field, value, customized=nil) errs = super - errs << ::I18n.t('activerecord.errors.messages.not_a_number') unless value =~ /^[+-]?\d+$/ + errs << ::I18n.t('activerecord.errors.messages.not_a_number') unless value.to_s =~ /^[+-]?\d+$/ errs end |