diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-30 17:31:50 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-30 17:31:50 +0000 |
commit | ee608f24f4f1126a53460df623ad50b2fd625c5d (patch) | |
tree | c857e35a55fd8eebe10971243b2314eeb56035bb /app/models/time_entry.rb | |
parent | b29b39290a35059af29d3c747deafe25d222be7f (diff) | |
download | redmine-ee608f24f4f1126a53460df623ad50b2fd625c5d.tar.gz redmine-ee608f24f4f1126a53460df623ad50b2fd625c5d.zip |
Fixed: Comment too long message when updating issue (#1550).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1608 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/time_entry.rb')
-rw-r--r-- | app/models/time_entry.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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? |