Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.3, 2.3
    • Fix Version/s: 2.4
    • Component/s: Backup, Enrolments
    • Labels:
    • Testing Instructions:
      Hide

      1/ backup course with several cohort sync instances (different cohorts and different roles)
      2/ do a default restore on different site - no enrolments or instances should be restore
      3/ restore on different site with "Restore as manual enrolments" options - all enrolments should be restored as manual
      4/ restore on the same site - all cohort related data should be restored 100%
      5/ delete one of the used cohorts
      6/ in enrol_cohort admin settings select "Unenrol user from course" - restore in the same site and verify the removed cohort sync instances and enrolments are not there
      7/ in enrol_cohort admin settings select "Disable course enrolment and delete roles" - restore in the same site and verify users from deleted cohorts are still enrolled, but without roles and suspended

      Show
      1/ backup course with several cohort sync instances (different cohorts and different roles) 2/ do a default restore on different site - no enrolments or instances should be restore 3/ restore on different site with "Restore as manual enrolments" options - all enrolments should be restored as manual 4/ restore on the same site - all cohort related data should be restored 100% 5/ delete one of the used cohorts 6/ in enrol_cohort admin settings select "Unenrol user from course" - restore in the same site and verify the removed cohort sync instances and enrolments are not there 7/ in enrol_cohort admin settings select "Disable course enrolment and delete roles" - restore in the same site and verify users from deleted cohorts are still enrolled, but without roles and suspended
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      w37_MDL-27856_m24_cohortrestore

      Description

      This line is firing off for enrol/cohort:

      debugging("Skipping '{$data->enrol}' enrolment plugin. Will be implemented before 2.0 release", DEBUG_DEVELOPER);

      Other core enrol plugins should also be addressed (As of filing this ticket, I think only 3 core ones have the hook)

      In order to re-produce, I think you only have to enrol a user with the cohort plugin and then backup/restore that course.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    3/Dec/12