[bugzilla-gnome-org-customizations/production] [Browse] List recent versions first in "Version" section
- From: Andre Klapper <aklapper src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bugzilla-gnome-org-customizations/production] [Browse] List recent versions first in "Version" section
- Date: Wed, 11 Feb 2015 15:23:40 +0000 (UTC)
commit f0d3e2773e59dd8b80d112266b0b428cc4d65ab4
Author: Andre Klapper <a9016009 gmx de>
Date: Wed Feb 11 16:09:24 2015 +0100
[Browse] List recent versions first in "Version" section
I care more about bugs in recent versions. Revert the sorting.
extensions/Browse/lib/Util.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/extensions/Browse/lib/Util.pm b/extensions/Browse/lib/Util.pm
index b729a7a..b57faa4 100644
--- a/extensions/Browse/lib/Util.pm
+++ b/extensions/Browse/lib/Util.pm
@@ -413,7 +413,7 @@ sub by_version {
my $product = shift;
my $dbh = Bugzilla->dbh;
- my @result = sort { vers_cmp($a->[0], $b->[0]) }
+ my @result = sort { vers_cmp($b->[0], $a->[0]) }
@{$dbh->selectall_arrayref("SELECT version, COUNT(bug_id)
FROM bugs
WHERE bug_status IN (" . browse_open_states() . ")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]