summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2018-01-07 21:43:04 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2018-01-07 21:43:04 +0000
commite8bc1dbaa80dd714254da9c19e4ffaae4fbf9736 (patch)
tree385ba756667a7a4fe212b6efc744739533bf74d5 /app
parent2a54a539bbf878d00927148290f19b625089760f (diff)
downloadredmine-e8bc1dbaa80dd714254da9c19e4ffaae4fbf9736.tar.gz
redmine-e8bc1dbaa80dd714254da9c19e4ffaae4fbf9736.zip
Merged r17144 to 3.4-stable (#27881).
git-svn-id: http://svn.redmine.org/redmine/branches/3.4-stable@17145 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/issue.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index 62a02e878..c84377dfb 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -441,7 +441,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',