diff --git a/class/Command/SendAssignmentNotificationCommand.php b/class/Command/SendAssignmentNotificationCommand.php index 0f00040a..36d579c2 100644 --- a/class/Command/SendAssignmentNotificationCommand.php +++ b/class/Command/SendAssignmentNotificationCommand.php @@ -7,6 +7,8 @@ use \Homestead\HMS_Bed; use \Homestead\HMS_RLC_Assignment; use \Homestead\HMS_Email; +use \Homestead\HMS_Activity_Log; +use \Homestead\UserStatus; use \Homestead\StudentFactory; use \Homestead\NotificationView; use \Homestead\Exception\PermissionException; @@ -160,6 +162,7 @@ public function execute(CommandContext $context) // Send the email HMS_Email::sendAssignmentNotice($student, $student->getName(), $term, $location, $roommates, $movein_time); + HMS_Activity_Log::log_activity(UserStatus::getUsername(), ACTIVITY_ASSIGNMENT_NOTICE, $student->getUsername()); // Mark the student as having received an email $db->reset(); diff --git a/class/HMS_Activity_Log.php b/class/HMS_Activity_Log.php index 33a90d0c..b5a5dcc5 100755 --- a/class/HMS_Activity_Log.php +++ b/class/HMS_Activity_Log.php @@ -236,7 +236,8 @@ public static function getActivityMapping() ACTIVITY_CONTRACT_STUDENT_SIGN_EMBEDDED => 'Student Signed Contract via Embedded Signing', ACTIVITY_CONTRACT_REMOVED_VOIDED => 'Removed Voided Contract', ACTIVITY_MEAL_PLAN_SENT => 'Meal Plan Reported to Banner', - ACTIVITY_ROOM_DAMAGE_NOTIFICATION => 'Room damage notification sent' + ACTIVITY_ROOM_DAMAGE_NOTIFICATION => 'Room damage notification sent', + ACTIVITY_ASSIGNMENT_NOTICE => 'Assignment notice sent' ); } diff --git a/inc/defines.php b/inc/defines.php index 57943589..05e0bb4d 100755 --- a/inc/defines.php +++ b/inc/defines.php @@ -395,7 +395,8 @@ define('ACTIVITY_MEAL_PLAN_SENT', 83); // Meal plan reported to Banner -define('ACTIVITY_ROOM_DAMAGE_NOTIFICATION', 84); // Room damage notification +define('ACTIVITY_ROOM_DAMAGE_NOTIFICATION', 84); // Room damage notification +define('ACTIVITY_ASSIGNMENT_NOTICE', 85); /** * Errors