From a77d884157439c226342e789f13bd6bfe8dd4227 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 10 Jan 2015 11:06:27 +0000 Subject: 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 --- lib/redmine/field_format.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/redmine/field_format.rb') 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 -- cgit v1.2.3