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

notices when exporting answers using question/type/questiontypebase.php code

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.4, 2.2.1
    • 2.1.4, 2.2.1
    • Questions
    • None
    • MOODLE_21_STABLE, MOODLE_22_STABLE
    • MOODLE_21_STABLE, MOODLE_22_STABLE
    • Hide

      Turn debugging on, and output error messages as part of the page.

      Export a question to XML format using a type which does not override the base export_to_xml method (such as the varnumericset question type found here : https://github.com/jamiepratt/moodle-qtype_varnumericset), ensuring that the feedback blocks are in HTML format.

      Check that there are no php notices in the exported question's file.

      Import the question from the XML file and then edit it. The feedback edit areas should now be HTML editors.

      Show
      Turn debugging on, and output error messages as part of the page. Export a question to XML format using a type which does not override the base export_to_xml method (such as the varnumericset question type found here : https://github.com/jamiepratt/moodle-qtype_varnumericset ), ensuring that the feedback blocks are in HTML format. Check that there are no php notices in the exported question's file. Import the question from the XML file and then edit it. The feedback edit areas should now be HTML editors.

    Description

      There is still a problem with exporting answers using the code in the base class.

      The code mistakenly refers to $question->feedbackformat rather than $answer->feedbackformat at line 1012.

      Attachments

        Activity

          People

            jamiesensei Jamie Pratt
            jamiesensei Jamie Pratt
            Tim Hunt Tim Hunt
            Sam Hemelryk Sam Hemelryk
            Sam Hemelryk Sam Hemelryk
            Safat Shahin, Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9/Jan/12