@@ -139,7 +139,6 class CustomField < ActiveRecord::Base | |||
|
139 | 139 | case field_format |
|
140 | 140 | when 'string', 'text', 'list', 'date', 'bool' |
|
141 | 141 | # COALESCE is here to make sure that blank and NULL values are sorted equally |
|
142 | self.custom_values.first.to_sql | |
|
143 | 142 | "COALESCE((SELECT cv_sort.value FROM #{CustomValue.table_name} cv_sort" + |
|
144 | 143 | " WHERE cv_sort.customized_type='#{self.class.customized_class.base_class.name}'" + |
|
145 | 144 | " AND cv_sort.customized_id=#{self.class.customized_class.table_name}.id" + |
General Comments 0
You need to be logged in to leave comments.
Login now