Feature #21413

Totals for custom field with different field format

Added by Sebastian Paluch about 2 years ago. Updated about 2 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:Code cleanup/refactoring
Target version:-
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

Related to Redmine - Feature #1561: Totals for estimated/spent time and numeric custom fields... Closed 2008-07-02

Associated revisions

Revision 14944
Added by Jean-Philippe Lang about 2 years ago

Moved custom fields totals logic to FieldFormat (#21413).

History

#1 Updated by Jean-Philippe Lang about 2 years ago

  • Related to Feature #1561: Totals for estimated/spent time and numeric custom fields on the issue list added

#2 Updated by Jean-Philippe Lang about 2 years ago

  • Category changed from Issues to Code cleanup/refactoring
  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Resolution set to Fixed

See r14944, you can enable totals for your custom field formats.

Also available in: Atom PDF