diff options
author | terry%mozilla.org <> | 2000-01-23 04:08:55 +0100 |
---|---|---|
committer | terry%mozilla.org <> | 2000-01-23 04:08:55 +0100 |
commit | 69c4be2d4794b0a8c66baeab5375c5cf3b8ffd9c (patch) | |
tree | 673a1767a93097b3038520caf33f1d65e5ae099b /query.cgi | |
parent | 2181b1425ce5acd7dd491a8ec60b51153c0580c3 (diff) | |
download | bugzilla-69c4be2d4794b0a8c66baeab5375c5cf3b8ffd9c.tar.gz bugzilla-69c4be2d4794b0a8c66baeab5375c5cf3b8ffd9c.tar.xz |
Remember the previous sort order in a cookie, and make that the
default sort order for new queries. Add a new "show list" link to the
navigation header to return you to the list of selected bugs.
Diffstat (limited to 'query.cgi')
-rwxr-xr-x | query.cgi | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -593,10 +593,18 @@ print " <NOBR><B>Sort By:</B> <SELECT NAME=\"order\"> - <OPTION>Bug Number - <OPTION SELECTED>\"Importance\" - <OPTION>Assignee -</SELECT></NOBR> +"; + +my $deforder = "'Importance'"; +my @orders = ('Bug Number', $deforder, 'Assignee'); + +if ($::COOKIE{'LASTORDER'}) { + $deforder = "Reuse same sort as last time"; + unshift(@orders, $deforder); +} + +print make_options(\@orders, $deforder); +print "</SELECT></NOBR> <INPUT TYPE=\"submit\" VALUE=\"Submit query\"> <INPUT TYPE=\"reset\" VALUE=\"Reset back to the default query\"> <INPUT TYPE=hidden name=form_name VALUE=query> |