]> source.dussan.org Git - redmine.git/commitdiff
Removed test line committed accidently (#11073).
authorEtienne Massip <etienne.massip@gmail.com>
Sat, 23 Jun 2012 16:51:54 +0000 (16:51 +0000)
committerEtienne Massip <etienne.massip@gmail.com>
Sat, 23 Jun 2012 16:51:54 +0000 (16:51 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9881 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/custom_field.rb

index 24ec67a0f581f1b1699837afc671035281e2068a..5d528cd6a3b3a6fcabfa3e4db6fe781865257a20 100644 (file)
@@ -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" +