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

Restoring a backup can lead to multiple guest enrolment instances

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 2.2.1, 3.7.1, 3.8
    • Enrolments
    • MOODLE_22_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
    • MDL-31497-master-2
    • Moderate
    • Hide

      Prepare a backup

      • Create a new course
      • Ensure that the 'guest' enrolment method is present
      • Create a course backup
        • Note You do not need to include user enrolment data

      Test the restore

      • Create a second new course
        • Ensure that the 'guest' enrolment method is not enabled (remove it if it is)
      • Restore your backup
        • Confirm that the guest enrolment method now exists
      • Restore your backup again
        • Confirm that only one instance of the 'guest' enrolment method exists
      • Remove the guest enrolment method
        • Confirm that there are now none
      • Restore your backup again
        • Confirm that the guest enrolment method now exists again
      Show
      Prepare a backup Create a new course Ensure that the 'guest' enrolment method is present Create a course backup Note You do not need to include user enrolment data Test the restore Create a second new course Ensure that the 'guest' enrolment method is not enabled (remove it if it is) Restore your backup Confirm that the guest enrolment method now exists Restore your backup again Confirm that only one instance of the 'guest' enrolment method exists Remove the guest enrolment method Confirm that there are now none Restore your backup again Confirm that the guest enrolment method now exists again

      It's only possible to create one enrol/guest instance, but a restore doesn't respect this.

      Comments in the code suggest that the enrolment plugin should return null if only one instance of the plugin is allowed

            Votes:
            9 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved:

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