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

Update ForkGrad Approval Action to create an actual new course instead of a...

Update ForkGrad Approval Action to create an actual new course instead of a new generation of an existing course.
parent aa5e1eb6
No related branches found
No related tags found
No related merge requests found
...@@ -131,6 +131,8 @@ class Courses_ApprovalActionForkGradModel extends Requests_ApprovalActionModel ...@@ -131,6 +131,8 @@ class Courses_ApprovalActionForkGradModel extends Requests_ApprovalActionModel
$newGeneration = clone $course; $newGeneration = clone $course;
// create a new generation of the course from the input request to base the new request on. // create a new generation of the course from the input request to base the new request on.
$gradCourse = clone $course; $gradCourse = clone $course;
$gradCourse->_data['course'] = NULL;
$gradCourse->_data['parent'] = NULL;
// Grab the home suffix now in case we need to use it later (ie: xx in 4xx/8xx) // Grab the home suffix now in case we need to use it later (ie: xx in 4xx/8xx)
$homeSuffix = substr($course->getCourseNumber(), -2); $homeSuffix = substr($course->getCourseNumber(), -2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment