diff options
author | Go MAEDA <maeda@farend.jp> | 2023-08-31 13:21:34 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-08-31 13:21:34 +0000 |
commit | fe9ef2fc27189d2d3c2ef7726c15e7c2a712cefa (patch) | |
tree | d1a22c1532e80225e8832ca6534f1d19eee215ec /app/models | |
parent | 2415c9f5d780c3b47e5b76cbd6207f361facb026 (diff) | |
download | redmine-fe9ef2fc27189d2d3c2ef7726c15e7c2a712cefa.tar.gz redmine-fe9ef2fc27189d2d3c2ef7726c15e7c2a712cefa.zip |
Add description for issue statuses and display them in issue new/edit form (#2568).
Patch by Takenori TAKAKI.
git-svn-id: https://svn.redmine.org/redmine/trunk@22288 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/issue_status.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/issue_status.rb b/app/models/issue_status.rb index 3080fea8a..a93bd5ddc 100644 --- a/app/models/issue_status.rb +++ b/app/models/issue_status.rb @@ -31,6 +31,7 @@ class IssueStatus < ActiveRecord::Base validates_presence_of :name validates_uniqueness_of :name, :case_sensitive => true validates_length_of :name, :maximum => 30 + validates_length_of :description, :maximum => 255 validates_inclusion_of :default_done_ratio, :in => 0..100, :allow_nil => true scope :sorted, lambda {order(:position)} @@ -38,6 +39,7 @@ class IssueStatus < ActiveRecord::Base safe_attributes( 'name', + 'description', 'is_closed', 'position', 'default_done_ratio') |