diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-01-11 16:33:51 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-01-11 16:33:51 +0000 |
commit | 3a28848ca03ae7d7e02c1bc9373a9f373cf0efeb (patch) | |
tree | bc5fd2f13bec04e46bc9b0aa71c784dfe90cb865 /app/models/custom_value.rb | |
parent | 1ca69f2af1eb152264fa0b0493f5173900da2f08 (diff) | |
download | redmine-3a28848ca03ae7d7e02c1bc9373a9f373cf0efeb.tar.gz redmine-3a28848ca03ae7d7e02c1bc9373a9f373cf0efeb.zip |
Ability to sort the issue list by text, list, date and boolean custom fields (#1139).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2257 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/custom_value.rb')
-rw-r--r-- | app/models/custom_value.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/custom_value.rb b/app/models/custom_value.rb index 1d453baf0..085d242fa 100644 --- a/app/models/custom_value.rb +++ b/app/models/custom_value.rb @@ -30,6 +30,10 @@ class CustomValue < ActiveRecord::Base self.value == '1' end + def to_s + value.to_s + end + protected def validate if value.blank? |