Moodle
  1. Moodle
  2. MDL-12255

Adding questiontext decoding and subquestions validation when editing multinanswer Cloze questiontype

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Questions
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE
    • Rank:
      34757

      Description

      In the question_multianswer_edit_form.php, the is the following comment
      //TODO would be nice to parse the question text here and output some error
      //messages if there is a problem with the text.
      So the code was modified to allow the user to ask for DECODE AND VERIFY THE QUESTION TEXT.
      The display shows all the questions and questions elements (questiontext, grade,answer, feedback) and the possible errors . He can then correct his questiontext before saving.
      The same validation is done when saving.
      There is no modification to the multianswer/questiontype.php
      See http://moodle.org/mod/forum/discuss.php?d=84638
      The file attached should be CVS soon to 2.0 after final verifications

        Activity

        Hide
        Pierre Pichet added a comment - - edited

        CVS to HEAD (2.0) after testing quite a lot of validate errors combination
        will wait comments before putting the
        'DECODE AND VERIFY THE QUESTION TEXT
        in a specific lang file.
        qtype_multianswer_question does not exist because there was no needs.

        Show
        Pierre Pichet added a comment - - edited CVS to HEAD (2.0) after testing quite a lot of validate errors combination will wait comments before putting the 'DECODE AND VERIFY THE QUESTION TEXT in a specific lang file. qtype_multianswer_question does not exist because there was no needs.
        Hide
        Pierre Pichet added a comment -

        something interfere in creating a new question so I remove temporarely (commented) all supplementary code.

        Show
        Pierre Pichet added a comment - something interfere in creating a new question so I remove temporarely (commented) all supplementary code.

          People

          • Assignee:
            Pierre Pichet
            Reporter:
            Pierre Pichet
            Tester:
            Nobody
            Participants:
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: