Skip to content
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...
1 parent 419c47c commit 56ff1300d97e7c07d3e3e3f46ed01d1a16eec719 Damyon Wiese committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 mod/assign/upgradelib.php
View
1 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.
Something went wrong with that request. Please try again.