summaryrefslogtreecommitdiffstats
path: root/app/models/custom_field.rb
diff options
context:
space:
mode:
authorEtienne Massip <etienne.massip@gmail.com>2012-06-23 16:51:54 +0000
committerEtienne Massip <etienne.massip@gmail.com>2012-06-23 16:51:54 +0000
commit1221b79e987b2e2e27166f93658c868d288d3e4d (patch)
tree453c7be88d0e9602f63d09a3fc5ac535198fb8fd /app/models/custom_field.rb
parent0cc817fba324c1e66f63d54428b20b318c9ab788 (diff)
downloadredmine-1221b79e987b2e2e27166f93658c868d288d3e4d.tar.gz
redmine-1221b79e987b2e2e27166f93658c868d288d3e4d.zip
Removed test line committed accidently (#11073).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9881 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/custom_field.rb')
-rw-r--r--app/models/custom_field.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/app/models/custom_field.rb b/app/models/custom_field.rb
index 24ec67a0f..5d528cd6a 100644
--- a/app/models/custom_field.rb
+++ b/app/models/custom_field.rb
@@ -139,7 +139,6 @@ class CustomField < ActiveRecord::Base
case field_format
when 'string', 'text', 'list', 'date', 'bool'
# COALESCE is here to make sure that blank and NULL values are sorted equally
- self.custom_values.first.to_sql
"COALESCE((SELECT cv_sort.value FROM #{CustomValue.table_name} cv_sort" +
" WHERE cv_sort.customized_type='#{self.class.customized_class.base_class.name}'" +
" AND cv_sort.customized_id=#{self.class.customized_class.table_name}.id" +