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

Fix to Email Course Info approval action when no previous request exists.

parent f6f84c1d
No related branches found
No related tags found
No related merge requests found
......@@ -142,7 +142,9 @@ class Courses_ApprovalActionEmailCourseInfoModel extends Requests_ApprovalAction
$previousRequests = Requests_RequestModel::find($previousRequestIds);
$this->_requestPreviousRequests = new Unl_Model_Collection('Requests_RequestModel');
foreach ($previousRequestIds as $childId => $parentId) {
$this->_requestPreviousRequests[$childId] = $previousRequests[$parentId];
if ($previousRequests[$parentId]) {
$this->_requestPreviousRequests[$childId] = $previousRequests[$parentId];
}
}
$ownerIds = array();
......
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