MDL-71200 mod_folder: ensure "Download folder" option is backed up.
authorPaul Holden <paulh@moodle.com>
Fri, 26 Mar 2021 11:03:26 +0000 (11:03 +0000)
committerPaul Holden <paulh@moodle.com>
Thu, 22 Apr 2021 09:29:25 +0000 (10:29 +0100)
mod/folder/backup/moodle2/backup_folder_stepslib.php

index 950ade3..4530b7d 100644 (file)
@@ -38,7 +38,7 @@ class backup_folder_activity_structure_step extends backup_activity_structure_st
         // Define each element separated
         $folder = new backup_nested_element('folder', array('id'), array(
             'name', 'intro', 'introformat', 'revision',
         // Define each element separated
         $folder = new backup_nested_element('folder', array('id'), array(
             'name', 'intro', 'introformat', 'revision',
-            'timemodified', 'display', 'showexpanded', 'forcedownload'));
+            'timemodified', 'display', 'showexpanded', 'showdownloadfolder', 'forcedownload'));
 
         // Build the tree
         // (nice mono-tree, lol)
 
         // Build the tree
         // (nice mono-tree, lol)