# HG changeset patch # User olivier # Date 1409047931 -7200 # Tue Aug 26 12:12:11 2014 +0200 # Node ID df7c7c268ca3714cb13d65edd15367ccf404205d # Parent ee101ed52ca92a083948fba9d1f3fe5312353c7c Added code for sorting on Project custom fields in issue lists Fixes #41473 diff -r ee101ed52ca9 -r df7c7c268ca3 plugins/extended_fields/lib/extended_project_patch.rb --- a/plugins/extended_fields/lib/extended_project_patch.rb Wed Aug 06 14:09:07 2014 +0200 +++ b/plugins/extended_fields/lib/extended_project_patch.rb Tue Aug 26 12:12:11 2014 +0200 @@ -132,6 +132,12 @@ end end + public + def fields_for_order_statement(table=nil) + table ||= table_name + ["#{table}.name", "#{table}.id"] + end + end module ArchivedMethods