View Issue Details

IDProjectCategoryView StatusLast Update
0005683mantisbtfilterspublic2017-08-19 21:33
Reporterpolzin Assigned Tocproensa  
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionduplicate 
Product Version1.0.0a2 
Summary0005683: Drop-down boxes of Customfield filters could be sorted
Description

I would be nice if the custom fields would be sorted in the drop-down boxes in the filters. This can be done by adding a line in custom_fields_distinct_values in core/custom_field_api.php

I prefere reverse sorting, which is a little disadvantageous for plain text fields, but very advantageous for such things as version builds etc.


for ( $i = 0; $i < $t_row_count; $i++ ) {
$row = db_fetch_array( $result2 );
if( !is_blank( trim( $row['value'] ) ) ) {
array_push( $t_return_arr, $row['value'] );
}
}

  • arsort( $t_return_arr );
    }
    return $t_return_arr;
    }
Tagspatch

Relationships

duplicate of 0015481 closeddregad Custom fields values are not sorted in the main filter 

Activities

There are no notes attached to this issue.