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

Add support for show_expanded in backup & restore

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 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!

      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

            stronk7 Eloy Lafuente (stronk7)
            stronk7 Eloy Lafuente (stronk7)
            Damyon Wiese Damyon Wiese
            Damyon Wiese Damyon Wiese
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.