summaryrefslogtreecommitdiffstats
path: root/app/models/time_entry.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/time_entry.rb')
-rw-r--r--app/models/time_entry.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/time_entry.rb b/app/models/time_entry.rb
index 91996ba2f..73f39f949 100644
--- a/app/models/time_entry.rb
+++ b/app/models/time_entry.rb
@@ -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