[bugzilla-gnome-org-extensions] patch report: Port to GnomeAttachmentStatus



commit 8c08a68bc6c3e22c432c551fbfd756d0015f77c8
Author: Krzesimir Nowak <qdlacz gmail com>
Date:   Thu Nov 6 22:44:51 2014 +0100

    patch report: Port to GnomeAttachmentStatus

 PatchReport/lib/Util.pm |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/PatchReport/lib/Util.pm b/PatchReport/lib/Util.pm
index 3eedbb2..a5119dc 100644
--- a/PatchReport/lib/Util.pm
+++ b/PatchReport/lib/Util.pm
@@ -47,7 +47,7 @@ sub _page_patch_report {
     my $max_days = -1;    # (int) Don't show patches older than this (in days)
     my $submitter;        # (int) submitter id
 
-    if (!$dbh->bz_column_info('attachments', 'status')) {
+    if (!$dbh->bz_column_info('attachments', 'gnome_attachment_status')) {
         ThrowCodeError('patchreport_no_attachments_status')
     }
 
@@ -94,8 +94,8 @@ sub _page_patch_report {
         trick_taint($patch_status);
         $type = $dbh->selectrow_array(
                     "SELECT value
-                       FROM attachment_status
-                       WHERE attachment_status.value = ?",
+                       FROM gnome_attachment_status
+                       WHERE gnome_attachment_status.value = ?",
                        undef, $patch_status);
     }
 
@@ -164,7 +164,7 @@ sub get_unreviewed_patches_and_stats {
       $query .= " AND attachments.isobsolete != '1'";
     }
     if ($patch_status ne 'obsolete') {
-        $query .= " AND attachments.status = '" . $patch_status . "'";
+        $query .= " AND attachments.gnome_attachment_status = '" . $patch_status . "'";
     }
     $query .= "   AND (bugs.bug_status = 'UNCONFIRMED'
                        OR bugs.bug_status = 'NEW'


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