diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-12-12 10:33:12 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-12-12 10:33:12 +0000 |
commit | d905f2ce7eb210811e84cd5227b864bce7e187c2 (patch) | |
tree | 059674bf7e23e1940ace612be35353f5383dfc65 /app/models/issue_status.rb | |
parent | d72778619f6b06ec86a7ac0be49d42885acdf640 (diff) | |
download | redmine-d905f2ce7eb210811e84cd5227b864bce7e187c2.tar.gz redmine-d905f2ce7eb210811e84cd5227b864bce7e187c2.zip |
Allow blank value for IssueStatus#default_done_ratio.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3157 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue_status.rb')
-rw-r--r-- | app/models/issue_status.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/issue_status.rb b/app/models/issue_status.rb index a9c1db584..fdda12a8c 100644 --- a/app/models/issue_status.rb +++ b/app/models/issue_status.rb @@ -24,6 +24,7 @@ class IssueStatus < ActiveRecord::Base validates_uniqueness_of :name validates_length_of :name, :maximum => 30 validates_format_of :name, :with => /^[\w\s\'\-]*$/i + validates_inclusion_of :default_done_ratio, :in => 0..100, :allow_nil => true def after_save IssueStatus.update_all("is_default=#{connection.quoted_false}", ['id <> ?', id]) if self.is_default? |