MantisBT: master d886a795

Author Committer Branch Timestamp Parent
cproensa dregad master 2017-08-26 08:42:48 master dc68e440
Affected Issues  0023265: Filter selection for numeric custom fields aren't sorted correctly on distinct values list
 0023266: Filter selection for numeric custom fields show values not coherent with custom field type
Changeset

Cast custom fields distinct values

Cast values for number based custom fields, when retrieving distinct
values. This allows:

  • The values are sorted numerically on the list
  • The values returned match what will be shown in the custom field, in
    case of type mismatch. For example, when having text stored in a
    numeric field.

Fixes: 0023265, 0023266

mod - core/custom_field_api.php Diff File