From a049cd8bfdeeb672b8346ad618eef7f6866846ca Mon Sep 17 00:00:00 2001
From: Tim Steiner <tsteiner2@unl.edu>
Date: Fri, 26 Jan 2007 16:39:51 +0000
Subject: [PATCH] Distinct rows only when fetching sorted requests.

---
 application/models/tables/Requests.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/application/models/tables/Requests.php b/application/models/tables/Requests.php
index 8a113f87..d7cb07a0 100644
--- a/application/models/tables/Requests.php
+++ b/application/models/tables/Requests.php
@@ -42,6 +42,7 @@ class Requests extends Nmc_Db_Table {
         $cc = CourseCodes::getInstance()->getTableName();
 
         $select = $db->select();
+        $select->distinct();
         $select->from($rq, '*');
         $select->join($cg, $rq . '.' . $this->getPrimaryKeyName() . ' = ' . $cg . '.request');
         $select->join($cx, $cg . '.' . CourseGenerations::getInstance()->getPrimaryKeyName() . ' = ' . $cx . '.generation');
-- 
GitLab