Project

General

Profile

Actions

Feature #21413

closed

Totals for custom field with different field format

Added by Sebastian Paluch almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
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

Related to Redmine - Feature #1561: Totals for estimated/spent time and numeric custom fields on the issue listClosedJean-Philippe Lang2008-07-02

Actions
Actions

Also available in: Atom PDF