]> source.dussan.org Git - redmine.git/commitdiff
Fixed: Comment too long message when updating issue (#1550).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 30 Jun 2008 17:31:50 +0000 (17:31 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 30 Jun 2008 17:31:50 +0000 (17:31 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1608 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/time_entry.rb

index 61b53d1c0c96016446c44f364f481100d7622119..759f9bed0dca4b5c06d13c481e59135d8cfd12dc 100644 (file)
@@ -32,7 +32,7 @@ class TimeEntry < ActiveRecord::Base
   
   validates_presence_of :user_id, :activity_id, :project_id, :hours, :spent_on
   validates_numericality_of :hours, :allow_nil => true
-  validates_length_of :comments, :maximum => 255
+  validates_length_of :comments, :maximum => 255, :allow_nil => true
 
   def after_initialize
     if new_record? && self.activity.nil?