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

Add support for show_expanded in backup & restore

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.5
    • 2.5
    • Resource
    • MOODLE_25_STABLE
    • MOODLE_25_STABLE
    • Hide

      A) Restoring old backups.

      1) In admin->Plugins->activities->folder untick show_expanded (disabled).
      2) Restore a <2.5 backup having a folder.
      3) The restored folder works and has its "Show sub-folders expanded" setting DISABLED.

      4) In admin->Plugins->activities->folder tick show_expanded (enabled).
      5) Restore a <2.5 backup having a folder.
      6) The restored folder works and has its "Show sub-folders expanded" setting ENABLED.

      B) Restoring current backups.

      7) Duplicate the activity restored in 3)
      8) The duplicate folder works and has its "Show sub-folders expanded" setting DISABLED. (same than the original)

      9) Duplicate the activity restored in 6)
      10) The duplicate folder works and has its "Show sub-folders expanded" setting ENABLED. (same than the original)

      That's all!

      Show
      A) Restoring old backups. 1) In admin->Plugins->activities->folder untick show_expanded (disabled). 2) Restore a <2.5 backup having a folder. 3) The restored folder works and has its "Show sub-folders expanded" setting DISABLED. 4) In admin->Plugins->activities->folder tick show_expanded (enabled). 5) Restore a <2.5 backup having a folder. 6) The restored folder works and has its "Show sub-folders expanded" setting ENABLED. B) Restoring current backups. 7) Duplicate the activity restored in 3) 8) The duplicate folder works and has its "Show sub-folders expanded" setting DISABLED. (same than the original) 9) Duplicate the activity restored in 6) 10) The duplicate folder works and has its "Show sub-folders expanded" setting ENABLED. (same than the original) That's all!

    Description

      This is a followup of MDL-30790 discovered while playing with MDL-38632.

      A new setting was added to mod_folder and it's missing in backup & restore.

      This is about to:

      1) add support to it.
      2) default to global setting value on restore operations missing it.

      Ciao

      Attachments

        Issue Links

          Activity

            People

              stronk7 Eloy Lafuente (stronk7)
              stronk7 Eloy Lafuente (stronk7)
              Damyon Wiese Damyon Wiese
              Damyon Wiese Damyon Wiese
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                14/May/13