Merged r1451 to r1454, r1458, r1460 to r1463 from trunk.

git-svn-id: http://redmine.rubyforge.org/svn/branches/0.7-stable@1474 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang committed 2008-05-29 18:07:00 +00:00
1 parent 290bd1756d
commit 2074f0ab41
24 files changed
+1307 -493

No files matched your search

+6
View File
@@ -29,6 +29,12 @@ class TimeEntry < ActiveRecord::Base
validates_numericality_of :hours, :allow_nil => true
validates_length_of :comments, :maximum => 255
def after_initialize
if new_record?
self.activity ||= Enumeration.default('ACTI')
end
end
def before_validation
self.project = issue.project if issue && project.nil?
end