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

Restrict Access form results in JS TypeError



      When adding restrict access to any course module, an "Uncaught TypeError" is thrown. Ultimately the interface still works but this negatively affects users using screen readers. The error appears to be associated with a form focus function.

      Steps to reproduce:

      1. Turn on browser developer tools and have the console displayed.
      2. Login to a course as an instructor
      3. Add an activity or resource to the course
      4. Complete all require fields for the activity
      5. Under "Restrict Access" click "Add restriction..."
      6. Choose any restriction
      7. When the modal goes away, the page runs into a
        "first.js:69 Uncaught TypeError: Cannot read property 'querySelectorAll' of undefined"

            Unassigned Unassigned
            smbader Steve Bader
            0 Vote for this issue
            5 Start watching this issue


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