Project

General

Profile

Actions

Feature #21413

closed

Totals for custom field with different field format

Added by Sebastian Paluch about 9 years ago. Updated about 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 #1

Updated by Jean-Philippe Lang about 9 years ago

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

Updated by Jean-Philippe Lang about 9 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.

Actions

Also available in: Atom PDF