Skip to content
Snippets Groups Projects
Commit a049cd8b authored by Tim Steiner's avatar Tim Steiner
Browse files

Distinct rows only when fetching sorted requests.

parent 1e8c472c
No related branches found
No related tags found
No related merge requests found
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment