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

Lesson questions XML import should ignore third party question types

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.7.4, 2.8.2
    • 2.7.3, 2.8.1
    • Lesson
    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • 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

      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

            jmvedrine Jean-Michel Vedrine
            jmvedrine Jean-Michel Vedrine
            Dan Poltawski Dan Poltawski
            Andrew Lyons Andrew Lyons
            Adrian Greeve Adrian Greeve
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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