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

Refinement to searching for parent course generations.

parent 784f8c24
No related branches found
No related tags found
No related merge requests found
......@@ -265,6 +265,7 @@ class Courses_CourseModel extends Unl_Model
$select = new Zend_Db_Select($db);
$select->from(array('g' => 'creqCourseGenerations'), array('request'));
$select->join(array('p' => 'creqCourseGenerations'), 'g.parent = p.courseGenerationId', array('courseGenerationId'));
$select->where('p.request != g.request OR p.request IS NULL');
$select->where('p.type = ?', 'official');
if (Unl_Util::isArray($request)) {
$select->where('g.request IN(?)', $requestId);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment