mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
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
This commit is contained in:
parent
738ecf1365
commit
24d6211f4e
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user