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

Add support for show_expanded in backup & restore

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.5
    • Component/s: Resource
    • Labels:
    • Testing Instructions:
      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!
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

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