summaryrefslogtreecommitdiffstats
path: root/lib/redmine/core_ext
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-04-30 09:09:28 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-04-30 09:09:28 +0000
commitf1ae453688aef224d5d8dd9e715811a7517e1bb2 (patch)
treeade26e1a32feb200bb0aa1d6edf7a3ad36709204 /lib/redmine/core_ext
parent4525a7429aecbdf44a62fc3c8adb972727ba19ad (diff)
downloadredmine-f1ae453688aef224d5d8dd9e715811a7517e1bb2.tar.gz
redmine-f1ae453688aef224d5d8dd9e715811a7517e1bb2.zip
Fixed: Updating tickets add a time log with zero hours (#1147).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1385 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/core_ext')
-rw-r--r--lib/redmine/core_ext/string/conversions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/core_ext/string/conversions.rb b/lib/redmine/core_ext/string/conversions.rb
index 7444445b0..41149f5ea 100644
--- a/lib/redmine/core_ext/string/conversions.rb
+++ b/lib/redmine/core_ext/string/conversions.rb
@@ -32,7 +32,7 @@ module Redmine #:nodoc:
end
# 2,5 => 2.5
s.gsub!(',', '.')
- s.to_f
+ begin; Kernel.Float(s); rescue; nil; end
end
end
end