summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjake%acutex.net <>2001-09-10 22:49:26 +0200
committerjake%acutex.net <>2001-09-10 22:49:26 +0200
commit2508e7d70adcfddb7e0fe18d5160f4df8dc83256 (patch)
tree9eb9218b5c0a42a7c2ad088c66194e10a4c1dae4
parent6596544fef79b37ed08c4bf8433df8779093ec9a (diff)
downloadbugzilla-2508e7d70adcfddb7e0fe18d5160f4df8dc83256.tar.gz
bugzilla-2508e7d70adcfddb7e0fe18d5160f4df8dc83256.tar.xz
Fix for bug 8647 - Add an option to the query page to sort by Last Changed date.
Patch by Matthew Tuck <matty@chariot.net.au> r= jake@acutex.net x2
-rwxr-xr-xbuglist.cgi4
-rwxr-xr-xquery.cgi2
2 files changed, 5 insertions, 1 deletions
diff --git a/buglist.cgi b/buglist.cgi
index 830b66599..e08df3952 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -1071,6 +1071,10 @@ if (defined $::FORM{'order'} && $::FORM{'order'} ne "") {
$::FORM{'order'} = "map_assigned_to.login_name, bugs.bug_status, priority, bugs.bug_id";
last ORDER;
};
+ /Changed/ && do {
+ $::FORM{'order'} = "bugs.delta_ts, bugs.bug_status, bugs.priority, map_assigned_to.login_name, bugs.bug_id";
+ last ORDER;
+ };
# DEFAULT
$::FORM{'order'} = "bugs.bug_status, bugs.priority, map_assigned_to.login_name, bugs.bug_id";
}
diff --git a/query.cgi b/query.cgi
index 10b644b63..9ba9ea689 100755
--- a/query.cgi
+++ b/query.cgi
@@ -1016,7 +1016,7 @@ print qq{
};
my $deforder = "'Importance'";
-my @orders = ('Bug Number', $deforder, 'Assignee');
+my @orders = ('Bug Number', $deforder, 'Assignee', 'Last Changed');
if ($::COOKIE{'LASTORDER'}) {
$deforder = "Reuse same sort as last time";