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

Typo in setting in backup_cron_helper.class.php

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0.2, 2.1.1, 2.2
    • Fix Version/s: 2.0.5, 2.1.2
    • Component/s: Backup
    • Labels:
      None
    • Testing Instructions:
      Hide

      1. Navigate to Admin > Courses > Backups > Automated backup setup
      2. Configure the backup to in the near future
      3. Select 'users' to include users in the backup
      4. Unselect the 'include role assignments button'
      5. Force cron to run and ensure an automated backup has been completed
      6. Go to a course and attempt to restore a backup

      Expected result:
      -------------------------
      The users are included in the backup, and the role assignments are not

      Actual result:
      ------------------
      The users are included in the backup with the role assignments. The users
      setting is what is actually used to determine whether role assignments get
      backed up

      Show
      1. Navigate to Admin > Courses > Backups > Automated backup setup 2. Configure the backup to in the near future 3. Select 'users' to include users in the backup 4. Unselect the 'include role assignments button' 5. Force cron to run and ensure an automated backup has been completed 6. Go to a course and attempt to restore a backup Expected result: ------------------------- The users are included in the backup, and the role assignments are not Actual result: ------------------ The users are included in the backup with the role assignments. The users setting is what is actually used to determine whether role assignments get backed up
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE
    • Pull from Repository:

      Description

      In the backup/util/helper/backup_cron_helper.class.php file at around line 312, this is written:

      'users' => 'backup_auto_users',
      'role_assignments' => 'backup_auto_users',
      'user_files' => 'backup_auto_user_files',

      The 'role_assignments' key should probably have the value 'backup_auto_role_assignments'.

        Attachments

          Activity

            People

            Assignee:
            poltawski Dan Poltawski
            Reporter:
            jonof Jonathon Fowler
            Integrator:
            Sam Hemelryk
            Tester:
            Aparup Banerjee
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              10/Oct/11