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

XHTML export for match questions create additional select controls for wrong answers

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.9.4, 2.3.6, 2.4.3
    • Fix Version/s: 2.3.7, 2.4.4
    • Component/s: Questions
    • Labels:
      None
    • Testing Instructions:
      Hide
      1. Create a matching question with at least 3 subquestion/subanswer couples and also one subanswer with an empty subquestion.
      2. Export the category containing this matching question using XHTML export format.
      3. Look at the resulting web page (either at the source code of in a browser) there should be exactly 3 select menus, no more, and 4 options should be available in each one including the subanaswer without matching subquestion.

      Example question:

      Match each little pig with his house:
      Fifer pig -> House of straw
      Fiddler pig -> House of sticks
      Practical pig -> House of bricks
      (empty) -> House of candy

      Note that there were some merge conflicts going to 2.3, so be sure to test both stable branches.

      Show
      Create a matching question with at least 3 subquestion/subanswer couples and also one subanswer with an empty subquestion. Export the category containing this matching question using XHTML export format. Look at the resulting web page (either at the source code of in a browser) there should be exactly 3 select menus, no more, and 4 options should be available in each one including the subanaswer without matching subquestion. Example question: Match each little pig with his house: Fifer pig -> House of straw Fiddler pig -> House of sticks Practical pig -> House of bricks (empty) -> House of candy Note that there were some merge conflicts going to 2.3, so be sure to test both stable branches.
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE
    • Pull Master Branch:

      Description

      It seems that when adding a possibility to define additional wrong answers to a match question it seems that it was forgotten to add it handling to XHTML export, so it create additional controls for such answers with empty text.

      Should be very easy to fix.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/May/13