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

Adding questiontext decoding and subquestions validation when editing multinanswer Cloze questiontype

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: 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

      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

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            ppichet 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
            ppichet 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
            ppichet Pierre Pichet added a comment -

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

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

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  24/Nov/10