mirror of
https://github.com/redmine/redmine.git
synced 2026-03-27 06:40:48 +01:00
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
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user