Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-32880

Make 1.9 blocks restorable in 2.3

    Details

    • Testing Instructions:
      Hide
      • Attempt to restore the attached Moodle 1.9 backup (backup-allblocks-20121120-1246.zip).
      • Confirm that it restores with no errors, and that all blocks (which exist in both 1.9 and 2.x) are present in the restored course.
      • Confirm that the Moodle logo image in the HTML block has been migrated (i.e. uses pluginfile.php rather than file.php).
      • Note that any blocks which store data outside the block config will be missing any such data (i.e. the rss_client block will not contain any feeds). This is because Moodle 1.9 does not back up that information, so it's not present in order to be restored. This behaviour is therefore consistent with restoring the 1.9 backup to a different instance of Moodle 1.9.
      Show
      Attempt to restore the attached Moodle 1.9 backup (backup-allblocks-20121120-1246.zip). Confirm that it restores with no errors, and that all blocks (which exist in both 1.9 and 2.x) are present in the restored course. Confirm that the Moodle logo image in the HTML block has been migrated (i.e. uses pluginfile.php rather than file.php). Note that any blocks which store data outside the block config will be missing any such data (i.e. the rss_client block will not contain any feeds). This is because Moodle 1.9 does not back up that information, so it's not present in order to be restored. This behaviour is therefore consistent with restoring the 1.9 backup to a different instance of Moodle 1.9.
    • Affected Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-32880_master_3

      Description

      Blocks from a 1.9+ backup are not restored in Moodle 2.1 and higher (1.9 restore was unsupported previously). This is an extension of MDL-22414 and a narrowing of the now-closed MDL-32244. The roadmap (http://docs.moodle.org/dev/Roadmap) sort-of mentions this as a part of user data restoration but I haven't found a tracker item. Upgrading current production isn't an option for everyone, nor is cloning current production, upgrading that, and then doing a backup/restore.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  23 Vote for this issue
                  Watchers:
                  14 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    14/Jan/13