MDL-29795 assign: add missing sortorder column for overrides when backing up a course
authorIlya Tregubov <ilya@catalyst-au.net>
Tue, 8 Nov 2016 02:23:22 +0000 (13:23 +1100)
committerIlya Tregubov <ilya@catalyst-au.net>
Tue, 8 Nov 2016 02:23:22 +0000 (13:23 +1100)
mod/assign/backup/moodle2/backup_assign_stepslib.php

index 38c87f8..6eb5c52 100644 (file)
@@ -132,7 +132,7 @@ class backup_assign_activity_structure_step extends backup_activity_structure_st
 
         $overrides = new backup_nested_element('overrides');
         $override = new backup_nested_element('override', array('id'), array(
-            'groupid', 'userid', 'allowsubmissionsfromdate', 'duedate', 'cutoffdate'));
+            'groupid', 'userid', 'sortorder', 'allowsubmissionsfromdate', 'duedate', 'cutoffdate'));
 
         // Build the tree.
         $assign->add_child($userflags);