Permalink
Browse files

MDL-31414: Add sendlatenotifications support to the mod_assign upgrad…

…e tool

Prevents an SQL error on upgrade from mod_assignment to mod_assign
  • Loading branch information...
Damyon Wiese
Damyon Wiese committed May 23, 2012
1 parent 419c47c commit 56ff1300d97e7c07d3e3e3f46ed01d1a16eec719
Showing with 1 addition and 0 deletions.
  1. +1 −0 mod/assign/upgradelib.php
@@ -84,6 +84,7 @@ public function upgrade_assignment($oldassignmentid, & $log) {
$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;

0 comments on commit 56ff130

Please sign in to comment.