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

Short answer question type in Lesson not returning right result if answer format is html format

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.4
    • Fix Version/s: 2.6.5, 2.7.2
    • Component/s: Lesson
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a 'Lesson' module in course
      2. Add a 'question page'
        • Select 'short answer' question type
        • Set the answer format to 'HTML format'
        • Set 'Jump' to next page
      3. Save and edit the question again
      4. Edit the answer with TinyMCE/Atto to include some bold tags
      5. Save and preview the question
      6. Enter correct answer to the question (without any HTML tags)
      7. Make sure you are not redirected to the same page
      8. Make sure when entering a wrong answer you are redirected to same page
      Show
      Create a 'Lesson' module in course Add a 'question page' Select 'short answer' question type Set the answer format to 'HTML format' Set 'Jump' to next page Save and edit the question again Edit the answer with TinyMCE/Atto to include some bold tags Save and preview the question Enter correct answer to the question (without any HTML tags) Make sure you are not redirected to the same page Make sure when entering a wrong answer you are redirected to same page
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-46852-master

      Description

      Steps to replicate

      • create a 'Lesson' module in course
      • Add a 'question page'
      • select 'short answer' question type
      • create question page with answer format set to 'HTML format'
      • set 'Jump' to next page
      • Go to preview
      • Enter correct answer to the question

      Result:
      It still stays on the same page rather than moving to next page- even though the answer entered is correct

      Expected result:
      It should take user to next question or end of question if the short answer entered is right

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                8/Sep/14