Actions
Feature #21413
closedTotals for custom field with different field format
Status:
Closed
Priority:
Normal
Assignee:
Category:
Code cleanup/refactoring
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Description
Please change the #1561 implementation so that FieldFormat class determines if the custom field is totalable or not.
e.g.
class QueryCustomFieldColumn < QueryColumn def initialize(custom_field) self.name = "cf_#{custom_field.id}".to_sym self.sortable = custom_field.order_statement || false self.groupable = custom_field.group_statement || false self.totalable = custom_field.totalable @inline = true @cf = custom_field end
We have a plugin adding custom fields with field_format different than int and float and would like to use totalable feature for those custom fields.
Related issues
Actions