From 2508e7d70adcfddb7e0fe18d5160f4df8dc83256 Mon Sep 17 00:00:00 2001 From: "jake%acutex.net" <> Date: Mon, 10 Sep 2001 20:49:26 +0000 Subject: Fix for bug 8647 - Add an option to the query page to sort by Last Changed date. Patch by Matthew Tuck r= jake@acutex.net x2 --- buglist.cgi | 4 ++++ query.cgi | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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"; -- cgit v1.2.3-24-g4f1b