summaryrefslogtreecommitdiffstats
path: root/app/models/custom_value.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-01-11 16:33:51 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-01-11 16:33:51 +0000
commit3a28848ca03ae7d7e02c1bc9373a9f373cf0efeb (patch)
treebc5fd2f13bec04e46bc9b0aa71c784dfe90cb865 /app/models/custom_value.rb
parent1ca69f2af1eb152264fa0b0493f5173900da2f08 (diff)
downloadredmine-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.rb4
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?