Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 56ff1300d97e7c07d3e3e3f46ed01d1a16eec719 1 parent 419c47c
Damyon Wiese authored
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;
Please sign in to comment.
Something went wrong with that request. Please try again.