diff options
author | gerv%gerv.net <> | 2002-06-14 07:21:53 +0200 |
---|---|---|
committer | gerv%gerv.net <> | 2002-06-14 07:21:53 +0200 |
commit | 824d8c7eb30bbdad106f34f77c507215777adf3f (patch) | |
tree | 1e561df6ff7958db3731f979cf2c8b8b247848ca | |
parent | d02f8a4d2134881785974afb29c7328aafd40fe8 (diff) | |
download | bugzilla-824d8c7eb30bbdad106f34f77c507215777adf3f.tar.gz bugzilla-824d8c7eb30bbdad106f34f77c507215777adf3f.tar.xz |
Bug 151023 - duplicates.cgi sort by delta sorts in wrong direction. Patch by gerv; r=bbaetz, jouni.
-rw-r--r-- | template/en/default/reports/duplicates-table.html.tmpl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/template/en/default/reports/duplicates-table.html.tmpl b/template/en/default/reports/duplicates-table.html.tmpl index 24eb4246e..df1da0d70 100644 --- a/template/en/default/reports/duplicates-table.html.tmpl +++ b/template/en/default/reports/duplicates-table.html.tmpl @@ -65,7 +65,12 @@ <b> [% bug_ids_string = bug_ids.join(',') %] <a href="duplicates.cgi?sortby=[% column.name %] - [% "&reverse=1" IF NOT reverse AND sortby == column.name %] + [% IF sortby == column.name %] + [% "&reverse=1" IF NOT reverse %] + [% ELSE %] + [%-# Some columns start off reversed %] + [% "&reverse=1" IF column.name.match('delta|count') %] + [% END %] [% "&maxrows=$maxrows" IF maxrows %] [% "&changedsince=$changedsince" IF changedsince %] [% "&openonly=1" IF openonly %] |