From e8cdc2447a028aa966151e65cab2406cb42db6de Mon Sep 17 00:00:00 2001
From: Tim Steiner <tsteiner2@unl.edu>
Date: Wed, 7 Nov 2007 21:15:29 +0000
Subject: [PATCH] Updates to UCC Approved Requests report page

---
 application/models/tables/Requests.php | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/application/models/tables/Requests.php b/application/models/tables/Requests.php
index 78baa59a..649e9f17 100644
--- a/application/models/tables/Requests.php
+++ b/application/models/tables/Requests.php
@@ -157,7 +157,10 @@ class Requests extends Nmc_Db_Table
             $requestIds[] = $row['request'];
         }
 
-        $where = $db->quoteInto('requestId IN (?)', $requestIds);
+        $where = array();
+        $where[] = $db->quoteInto('requestId IN (?)', $requestIds);
+        $where[] = 'state = "approve"';
+        $where = implode(' AND ', $where);
         return $this->fetchAllSorted($where, self::COMPLETED_REQUESTS_ONLY);
     }
 
-- 
GitLab