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

Course restore should exclude questions of uninstalled qtypes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.5.3
    • Fix Version/s: None
    • Component/s: Quiz
    • Labels:
      None
    • Affected Branches:
      MOODLE_35_STABLE

      Description

      When a course is restored, all question records are restored even if the course package contains question records of a question type which is not installed in the destination environment. The comments in MDL-21087 suggest that there is no value in restoring these questions as the restore of the questions is likely to be incomplete with the absence of the installed question type plugin. Installing the question type post restore does not yield working questions. As such, these questions should be excluded from the restore.

      Restoring question records for uninstalled question types can lead to various errors. For example, if a question bank contains questions using a question type that is not installed, then attempting to remove those questions from any question category results in an error of the type: "Coding error detected, it must be fixed by a programmer: Unknown question type: " followed by the relevant qtype name.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                timhunt Tim Hunt
                Reporter:
                brian.winstead Brian Winstead
                Participants:
                Component watchers:
                Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: