summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-05-23 06:52:31 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-05-23 06:52:31 +0000
commit24d6211f4e4b2979693fdc8826c9d0b09ac510d6 (patch)
tree95065065ad62c960792a8947de64e19c8c7b852e
parent738ecf13654cbad7de53af516d13b004bead4ff3 (diff)
downloadredmine-24d6211f4e4b2979693fdc8826c9d0b09ac510d6.tar.gz
redmine-24d6211f4e4b2979693fdc8826c9d0b09ac510d6.zip
Missing validation for description size of versions (#19840).
Patch by Bruno Orcha GarcĂ­a. git-svn-id: http://svn.redmine.org/redmine/trunk@14267 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/models/version.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/version.rb b/app/models/version.rb
index b48677793..e4cbcc16c 100644
--- a/app/models/version.rb
+++ b/app/models/version.rb
@@ -31,6 +31,7 @@ class Version < ActiveRecord::Base
validates_presence_of :name
validates_uniqueness_of :name, :scope => [:project_id]
validates_length_of :name, :maximum => 60
+ validates_length_of :description, :maximum => 255
validates :effective_date, :date => true
validates_inclusion_of :status, :in => VERSION_STATUSES
validates_inclusion_of :sharing, :in => VERSION_SHARINGS