MantisBT: master b8dc9937

Author Committer Branch Timestamp Parent
dregad dregad master 2013-02-09 11:54 master 15db187c
Affected Issues  0015481: Custom fields values are not sorted in the main filter
Changeset

Fix 0015481: custom field values sort order in view all page filter

Commit b5abce1f917da688c86aec17dee11111ced5f0b7 introduced a regression
in the sort order of custom field values because the query retrieving
the custom field values was rewritten with a SELECT DISTINCT instead of
using a GROUP BY clause. With MySQL, group by sorts the results, whereas
distinct does not (not tested with other RDBMS).

This fixes the issue by adding an ORDER BY clause.

mod - core/custom_field_api.php Diff File