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

Update ApprovalActionCollegeRouterModel to use Courses_CourseModel::getColleges()

parent 977423ae
No related branches found
No related tags found
No related merge requests found
......@@ -57,17 +57,11 @@ class Courses_ApprovalActionCollegeRouterModel extends Requests_ApprovalActionMo
public function getResultStatusStrings()
{
if (count($this->_colleges) == 0) {
$db = Zend_Registry::get('db');
$select = new Zend_Db_Select($db);
$select->from(array('c' => 'creqColleges'));
$records = $select->query()->fetchAll();
$colleges = array();
foreach ($records as $record) {
$colleges[$record['name']] = $record['name'];
}
$this->_colleges = $colleges;
}
return $this->_colleges;
$colleges = array();
foreach (Courses_CourseModel::getColleges() as $college) {
$colleges[$college] = $college;
}
return $colleges;
}
}
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