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

Lesson questions XML import should ignore third party question types

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.3, 2.8.1
    • Fix Version/s: 2.7.4, 2.8.2
    • Component/s: Lesson
    • Labels:
    • Testing Instructions:
      Hide

      Create a lesson
      Try to import an XML file with some questions from non core question types
      Verify that

      • a message similar to "Error importing question Question type xxxx is not supported by XML import " is displayed
      • these questions are just ignored and if there are other supported questions in the file they are imported correctly
      Show
      Create a lesson Try to import an XML file with some questions from non core question types Verify that a message similar to "Error importing question Question type xxxx is not supported by XML import " is displayed these questions are just ignored and if there are other supported questions in the file they are imported correctly
    • Affected Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull Master Branch:

      Description

      During Moodle XML questions import all third party question types should just be ignored as lesson doesn't support any of them.
      Currently a fatal error is thrown:
      Fatal error: Call to undefined method qformat_xml::try_importing_using_qtypes() in C:\wamp\www\moodle_head\question\format\xml\format.php on line 977
      To solve the problem it should be enough to just add a try_importing_using_qtypes function to the qformat_default class in mod/lesson/format.php that return false

        Attachments

          Activity

            People

            Assignee:
            jmvedrine Jean-Michel Vedrine
            Reporter:
            jmvedrine Jean-Michel Vedrine
            Peer reviewer:
            Dan Poltawski
            Integrator:
            Andrew Nicols
            Tester:
            Adrian Greeve
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              12/Jan/15