diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-01-07 21:43:44 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-01-07 21:43:44 +0000 |
commit | 0acf526cf344f9685ce15e0d13b11e96e5d96bba (patch) | |
tree | b21bcfbc4232ec840f18655ab98bf72175b14e2e /app/models/issue.rb | |
parent | 1d1fbff99df59ddb3b8367740718173b9a37c5c0 (diff) | |
download | redmine-0acf526cf344f9685ce15e0d13b11e96e5d96bba.tar.gz redmine-0acf526cf344f9685ce15e0d13b11e96e5d96bba.zip |
Merged r17144 to 3.3-stable (#27881).
git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@17146 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r-- | app/models/issue.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index 4f9520cc7..a7af6c61c 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -424,7 +424,7 @@ class Issue < ActiveRecord::Base end def estimated_hours=(h) - write_attribute :estimated_hours, (h.is_a?(String) ? h.to_hours : h) + write_attribute :estimated_hours, (h.is_a?(String) ? (h.to_hours || h) : h) end safe_attributes 'project_id', |