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

Imported multichoice questions may have a blank answernumbering value, which results in an "ERR" prefix to all answers' text.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.8.6, 1.9.2
    • 1.9
    • Questions
    • None
    • MOODLE_19_STABLE
    • MOODLE_18_STABLE, MOODLE_19_STABLE

      Older versions of Moodle do not have an answernumbering value for their questions, but may include the answeringnumber XML entry when exporting as Moodle XML. A more recent Moodle that does use answernumbering will read the blank value and store it in question_multichoice.answernumbering without validation.

      The visible result: In these imported multichoice questions, the text "ERR" will prefix all of the answers' text, as in the attached screenshot.

      The fix is trivial, simply check to see if the answernumbering is defined and if not, set it to the default (abc). I've attached a patch for question/format/xml/format.php

            timhunt Tim Hunt
            nateh Nate H
            Jérôme Mouneyrac Jérôme Mouneyrac
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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