Skip to content
Snippets Groups Projects
Commit 0f10c7f7 authored by Roger W Feese's avatar Roger W Feese
Browse files

If there is no course id in the request (such as a new course request), don't...

If there is no course id in the request (such as a new course request), don't try to load ace recert data.
parent 79ce0028
No related branches found
No related tags found
1 merge request!9Projects Task 27
......@@ -3926,10 +3926,12 @@ class Courses_CourseModel extends Unl_Model
$this->_data['aceRecertification'] = null;
}
} else {
if($this->_data['course']){ // if there is an existing course this request refers to
$select = new Zend_Db_Select($db);
$select->from(array('a' => 'creqCourseAceRecertifications'));
$select->where('a.generation = ?', $this->_data['course']);
$record = $select->query()->fetch();
}
if($record){
// for AceRecertification record, get the questions and answers
......@@ -3962,6 +3964,7 @@ class Courses_CourseModel extends Unl_Model
}
}
// No previous ace recertification data found -- Last resort is to just load the most recent question set version.
if (!is_array($this->_data['aceRecertification'])) {
// load current empty question set
//SELECT q.* FROM creq.creqCourseAceRecertifyQuestionSets as s
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment