Force TimeEntry#hours default to nil (#3075, #4449).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3232 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang committed 2009-12-23 20:05:46 +00:00
1 parent 5e1dc78d75
commit d63784569f
2 files changed
+5

No files matched your search

+1
View File
@@ -44,6 +44,7 @@ class TimeEntry < ActiveRecord::Base
if default_activity = TimeEntryActivity.default
self.activity_id = default_activity.id
end
self.hours = nil if hours == 0
end
end