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

Quiz error message shows html-code when trying to attempt it

    • MOODLE_401_STABLE
    • MDL-79935_403_STABLE
    • MDL-79935_main
    • Hide
      1. As admin/teacher create a quiz with at least one question
      2. Go quiz setting 'Set Timing' > 'Close the quiz' e.g. after 1-5 minutes in the future (which ever time it takes to open the quiz as student)
      3. Log in as a student account
      4. Go to the course and click to open the quiz, but do not Attempt quiz yet.
      5. Wait until the quiz closing time goes over
      6. Push "Attempt quiz" button to try to start the quiz -> error is shown
        • CONFIRM there are no HTML tags in the error message.
      Show
      As admin/teacher create a quiz with at least one question Go quiz setting 'Set Timing' > 'Close the quiz' e.g. after 1-5 minutes in the future (which ever time it takes to open the quiz as student) Log in as a student account Go to the course and click to open the quiz, but do not Attempt quiz yet. Wait until the quiz closing time goes over Push "Attempt quiz" button to try to start the quiz -> error is shown CONFIRM there are no HTML tags in the error message.

      When user tries to enter a quiz a bit too late, it shows the reason within error message.
      That message shows html-code amidst the plain text.
       

      "You are not allowed to attempt this quiz at this time because: <p class="text-left">This quiz is currently not available.</p>"

      More information about this error"

       

       

      A way to reproduce the error

      1. As admin/teacher create a quiz with at least one question
      2. Go quiz setting 'Set Timing' > 'Close the quiz' e.g. after 1-5 minutes in the future (which ever time it takes to open the quiz as student)
      3. Log in as a student account
      4. Go to the course and click to open the quiz, but do not Attempt quiz yet.
      5. Wait until the quiz closing time goes over
      6. Push "Attempt quiz" button to try to start the quiz -> error is shown

       

       

            Unassigned Unassigned
            peterr petririikonen
            Mark Johnson Mark Johnson
            Votes:
            1 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.