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

Course import fails in some conditions

    Details

    • Testing Instructions:
      Hide

      Prerequisites:

      • Moodle in standard configuration.
      • Two courses, C1 and C2, where C1 contains at least one activity or resource.
      • C2 must have at least one role override for the "Manager" role. For example, in C2, click "Settings -> Users -> Permissions", select "Manager", and set "Configure cohort instances" to "Allow".
      • One user, U1, who is assigned the teacher role in both C1 and C2.

      Test case:

      • Log in as U1.
      • Go to course C1 and click "Settings -> Course administration -> Import".
      • Select C2 as the course to import from.
      • Click through the following screens without changing the default settings, until the import is being performed.
      • Expected behaviour: the following message is being displayed.
        "Warning

      The Manager role in the backup file cannot be mapped to any of the roles that you are allowed to assign.

      Import complete. Click continue to return to the course."

      • Click "Continue".
      • Check expected behaviour: Activities/Resources from C2 now appear in C1.
      Show
      Prerequisites: Moodle in standard configuration. Two courses, C1 and C2, where C1 contains at least one activity or resource. C2 must have at least one role override for the "Manager" role. For example, in C2, click "Settings -> Users -> Permissions", select "Manager", and set "Configure cohort instances" to "Allow". One user, U1, who is assigned the teacher role in both C1 and C2. Test case: Log in as U1. Go to course C1 and click "Settings -> Course administration -> Import". Select C2 as the course to import from. Click through the following screens without changing the default settings, until the import is being performed. Expected behaviour: the following message is being displayed. "Warning The Manager role in the backup file cannot be mapped to any of the roles that you are allowed to assign. Import complete. Click continue to return to the course." Click "Continue". Check expected behaviour: Activities/Resources from C2 now appear in C1.
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE
    • Pull Master Branch:

      Description

      If any warnings occur during a course import, then the import fails, although Moodle reports that it has been completed successfully. (An example of a warning would be that the backup file contains references to a role that the present user cannot assign - even if it's not actually necessary to assign it for performing the import.)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                4 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Sep/13