[bugzilla-gnome-org-extensions] browse: Use gnome_open_statuses for open bug statuses



commit 5bd984762c82d982dea924c3d74ca0cd0e138201
Author: Krzesimir Nowak <qdlacz gmail com>
Date:   Wed Nov 19 13:38:38 2014 +0100

    browse: Use gnome_open_statuses for open bug statuses
    
    So the results here are consistent with PatchStatus extension.

 Browse/lib/Util.pm      |    3 ++-
 PatchReport/lib/Util.pm |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/Browse/lib/Util.pm b/Browse/lib/Util.pm
index e9e4f87..8dc4f7e 100644
--- a/Browse/lib/Util.pm
+++ b/Browse/lib/Util.pm
@@ -276,7 +276,8 @@ sub _page_browse {
 
 sub browse_open_states {
     my $dbh = Bugzilla->dbh;
-    return join(",", map { $dbh->quote($_) } grep($_ ne "NEEDINFO", BUG_STATE_OPEN));
+
+    return join(',', map { $dbh->quote($_) } Bugzilla::Status->gnome_open_statuses());
 }
 
 sub total_open_bugs {
diff --git a/PatchReport/lib/Util.pm b/PatchReport/lib/Util.pm
index ef44c0e..33a5be0 100644
--- a/PatchReport/lib/Util.pm
+++ b/PatchReport/lib/Util.pm
@@ -166,7 +166,7 @@ sub get_unreviewed_patches_and_stats {
     if ($patch_status ne 'obsolete') {
         $query .= " AND attachments.gnome_attachment_status = '" . $patch_status . "'";
     }
-    $quert .= "   AND (bugs.bug_status IN (" . browse_open_states() . ")
+    $query .= "   AND bugs.bug_status IN (" . browse_open_states() . ")
              ORDER BY products.name, components.name, attachments.bug_id, attachments.attach_id";
 
     my $sth = $dbh->prepare($query);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]