Commit 2508e7d7 authored by jake%acutex.net's avatar jake%acutex.net

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
parent 6596544f
......@@ -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";
}
......
......@@ -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";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment