summaryrefslogtreecommitdiffstats
path: root/query.cgi
diff options
context:
space:
mode:
authorterry%mozilla.org <>2000-01-23 04:08:55 +0100
committerterry%mozilla.org <>2000-01-23 04:08:55 +0100
commit69c4be2d4794b0a8c66baeab5375c5cf3b8ffd9c (patch)
tree673a1767a93097b3038520caf33f1d65e5ae099b /query.cgi
parent2181b1425ce5acd7dd491a8ec60b51153c0580c3 (diff)
downloadbugzilla-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-xquery.cgi16
1 files changed, 12 insertions, 4 deletions
diff --git a/query.cgi b/query.cgi
index f8728e9c9..b032a2860 100755
--- a/query.cgi
+++ b/query.cgi
@@ -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>