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

    • MOODLE_30_STABLE, MOODLE_31_STABLE
    • MOODLE_30_STABLE, MOODLE_31_STABLE
    • wip-MDL-54986-master
    • Easy
    • 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.

      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

            jb23347 John Beedell (Inactive)
            jaked Jake Dallimore
            Tim Hunt Tim Hunt
            Dan Poltawski Dan Poltawski
            John Okely John Okely
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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