MDL-31414: Add sendlatenotifications support to the mod_assign upgrade tool
authorDamyon Wiese <damyon.wiese@netspot.com.au>
Wed, 23 May 2012 06:05:35 +0000 (14:05 +0800)
committerDamyon Wiese <damyon.wiese@netspot.com.au>
Wed, 23 May 2012 06:05:35 +0000 (14:05 +0800)
Prevents an SQL error on upgrade from mod_assignment to mod_assign

mod/assign/upgradelib.php

index 90dafe2..c50e873 100644 (file)
@@ -84,6 +84,7 @@ class assign_upgrade_manager {
         $data->introformat = $oldassignment->introformat;
         $data->alwaysshowdescription = 1;
         $data->sendnotifications = $oldassignment->emailteachers;
+        $data->sendlatenotifications = $oldassignment->emailteachers;
         $data->duedate = $oldassignment->timedue;
         $data->allowsubmissionsfromdate = $oldassignment->timeavailable;
         $data->grade = $oldassignment->grade;