Skip to content
Snippets Groups Projects
Commit 9227ec71 authored by Nick Barry's avatar Nick Barry
Browse files

Merge branch 'projects-task-21' into 'master'

Projects Task 21

This requires the addition of the "retired" field to the creqCourseGroups table:
ALTER TABLE creqCourseGroups ADD retired enum('no','yes') DEFAULT 'no';
parents 03664219 c10b08ce
No related branches found
No related tags found
No related merge requests found
...@@ -1852,6 +1852,7 @@ class Courses_CourseModel extends Unl_Model ...@@ -1852,6 +1852,7 @@ class Courses_CourseModel extends Unl_Model
if (!$courseGroups) { if (!$courseGroups) {
$select = new Zend_Db_Select(Zend_Registry::get('db')); $select = new Zend_Db_Select(Zend_Registry::get('db'));
$select->from(array('cg' => 'creqCourseGroups')); $select->from(array('cg' => 'creqCourseGroups'));
$select->where("cg.retired = 'no'");
$records = $select->query()->fetchAll(); $records = $select->query()->fetchAll();
$courseGroups = array(); $courseGroups = array();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment