diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-09-21 21:00:06 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-09-21 21:00:06 +0000 |
commit | 5882629e26abcc6dcf7d1f0a0e62982ea1a308ca (patch) | |
tree | 20c081ea6206e7e93744c40aa9a53d15a08f486d /app/models/time_entry.rb | |
parent | a7b6ad9bb5ba4953134912c39f3de02b38c7b536 (diff) | |
download | redmine-5882629e26abcc6dcf7d1f0a0e62982ea1a308ca.tar.gz redmine-5882629e26abcc6dcf7d1f0a0e62982ea1a308ca.zip |
Raises time entries comments limit to 1024 (#19885).
git-svn-id: http://svn.redmine.org/redmine/trunk@14621 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 062e9c80b..b133f502a 100644 --- a/app/models/time_entry.rb +++ b/app/models/time_entry.rb @@ -39,7 +39,7 @@ class TimeEntry < ActiveRecord::Base validates_presence_of :user_id, :activity_id, :project_id, :hours, :spent_on validates_numericality_of :hours, :allow_nil => true, :message => :invalid - validates_length_of :comments, :maximum => 255, :allow_nil => true + validates_length_of :comments, :maximum => 1024, :allow_nil => true validates :spent_on, :date => true before_validation :set_project_if_nil validate :validate_time_entry |