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

Clicking 'Add' under a question in a quiz with attempts results in a JS 'Uncaught TypeError'

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.6, 3.1
    • Fix Version/s: 3.0.7, 3.1.3
    • Component/s: JavaScript, Quiz
    • Labels:
    • Testing Instructions:
      Hide

      1. As an admin, create a new quiz and add a single question
      2. As a student, attempt the quiz
      3. As an admin, edit the quiz ('Admin' block > 'Quiz admin' > 'Edit quiz').
      4. Check clicking the 'Add' link under the question is possible, but the link is dimmed and does nothing. Open the browser console. Click on the Add link again and check there are no JavaScript errors.

      Show
      1. As an admin, create a new quiz and add a single question 2. As a student, attempt the quiz 3. As an admin, edit the quiz ('Admin' block > 'Quiz admin' > 'Edit quiz'). 4. Check clicking the 'Add' link under the question is possible, but the link is dimmed and does nothing. Open the browser console. Click on the Add link again and check there are no JavaScript errors.
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Pull Master Branch:
      wip-MDL-54986-master

      Description

      1. As an admin, create a new quiz and add a single question
      2. As a student, attempt the quiz
      3. As an admin, edit the quiz ('Admin' block > 'Quiz admin' > 'Edit quiz'). Open the browser console now.
      4. Click the 'Add' link under the question. You will see an error in the console:
        Uncaught TypeError: Cannot read property 'focus' of null

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jb23347 John Beedell
              Reporter:
              jaked Jake Dallimore
              Peer reviewer:
              Tim Hunt
              Integrator:
              Dan Poltawski
              Tester:
              John Okely
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/Nov/16