From: Jean-Philippe Lang Date: Mon, 30 Jun 2008 17:31:50 +0000 (+0000) Subject: Fixed: Comment too long message when updating issue (#1550). X-Git-Tag: 0.8.0-RC1~386 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ee608f24f4f1126a53460df623ad50b2fd625c5d;p=redmine.git Fixed: Comment too long message when updating issue (#1550). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1608 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/time_entry.rb b/app/models/time_entry.rb index 61b53d1c0..759f9bed0 100644 --- a/app/models/time_entry.rb +++ b/app/models/time_entry.rb @@ -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?