From be43d4b573f7cebb627e88b46212c0903acf7c7b Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 21 Dec 2005 05:58:32 +0000 Subject: Bug 302326: Column sort links in bug lists should use field IDs instead of names - Patch by Marc Schumann r=LpSolit a=justdave --- template/en/default/list/table.html.tmpl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'template') diff --git a/template/en/default/list/table.html.tmpl b/template/en/default/list/table.html.tmpl index d3fe3231b..7ef53058a 100644 --- a/template/en/default/list/table.html.tmpl +++ b/template/en/default/list/table.html.tmpl @@ -131,8 +131,15 @@ [% IF sorted_by_relevance %] [%- abbrev.$id.title || field_descs.$id || column.title -%] [% ELSE %] + [% IF column.name.match('\s+AS\s+') %] + [%# For aliased columns, use their ID for sorting. %] + [% column.sortalias = id %] + [% ELSE %] + [%# Other columns may sort on their name directly. %] + [% column.sortalias = column.name %] + [% END %] -- cgit v1.2.1