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

Requests to remove ACE from a course will actually remove it now.

parent 70415d97
No related branches found
No related tags found
No related merge requests found
......@@ -107,6 +107,9 @@ class Courses_NewController extends App_Controller_Action
if (in_array($request->getType(), array('RemoveCourse'))) {
$course->setRemoved();
}
if (in_array($request->getType(), array('RemoveACEFromCourse', 'RemoveACEAndChangeCourse'))) {
$course->removeAce();
}
$id = hash('md5', uniqid());
$session = new Zend_Session_Namespace('Edit Request ' . $id);
......
......@@ -2449,7 +2449,7 @@ class Courses_CourseModel extends Unl_Model
}
}
}
public function getAceReinforcements()
{
$reinforcements = $this->_data['aceReinforcements'];
......@@ -2523,6 +2523,12 @@ class Courses_CourseModel extends Unl_Model
}
}
public function removeAce()
{
$this->_data['aceOutcomes'] = array();
$this->_data['aceReinforcements'] = array();
}
public function getEffectiveSemester()
{
return $this->_data['effectiveSemester'];
......
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