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

Fix Curriculum Search by activity type.

parent d2b9a37e
Branches
Tags
No related merge requests found
......@@ -597,6 +597,11 @@ class Courses_CourseModel extends Unl_Model
if ($criteria['integratedStudies']) {
$select->where('c.integratedStudies = ?', 'yes');
}
if ($criteria['activity']) {
$select->join(array('ca' => 'creqCourseActivities'), 'g.courseGenerationId = ca.generation', array());
$select->join(array('act' => 'creqActivityTypes'), 'ca.type = act.shortName', array());
$select->where('act.activityTypeId = ?', $criteria['activity']);
}
if (!$includeRemoved) {
$select->where('g.courseGenerationId = g2.courseGenerationId');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment