From e3dcda6bfa8e01cf2ce195ffe107dae43566101e Mon Sep 17 00:00:00 2001 From: Nick Barry <nbarry@unl.edu> Date: Mon, 27 Oct 2014 11:03:12 -0500 Subject: [PATCH] Fixed bug in course edit controller where it would not process course form data for new request types --- application/modules/courses/controllers/EditController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/modules/courses/controllers/EditController.php b/application/modules/courses/controllers/EditController.php index 14ca82ea..47927950 100644 --- a/application/modules/courses/controllers/EditController.php +++ b/application/modules/courses/controllers/EditController.php @@ -42,7 +42,9 @@ class Courses_EditController extends Creq_Controller_Action $request = $session->request; $errors = array(); - if (!in_array($request->getType(), array('RemoveCourse', 'AddACEToCourse', 'RemoveACEFromCourse', 'ChangeACE', 'RecertifyACE', 'RecertifyACEAndChangeCourse', 'ChangeACEAndChangeCourse')) && !$course->getRemoved()) { + if (!in_array($request->getType(), array('RemoveCourse', 'AddACEToCourse', 'RemoveACEFromCourse', 'ChangeACE', 'RecertifyACE')) && !$course->getRemoved()) { + // this is the course stuff, only add to array above for request types that are not processing course data + $homeCourseGroups = array(); foreach ($in->courseCodeGroups as $key => $courseCodeGroup) { $courseCode = explode(':', $courseCodeGroup['crosslisting']); -- GitLab