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

Adding a permission to an activity causes a TypeError

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 3.6.1
    • Course, Roles / Access
    • None
    • MOODLE_36_STABLE

      When attempting to add a permission to an activity (in this case, add an email on quiz submission, as per - https://docs.moodle.org/36/en/Quiz_submission_email_notification), the first time I click the `+` sign, I see a Type error. Clearing the error and returning gets me to the dialog bot as expected:

       

      `Cannot read property 'filter' of undefined`

      ```

      TypeError: Cannot read property 'filter' of undefined at HTMLBodyElement.<anonymous> (

      https://demomoodle.pexipacademy.com/lib/requirejs.php/1547352868/core/first.js:16:2194

      ) at HTMLBodyElement.e (

      https://demomoodle.pexipacademy.com/lib/javascript.php/1547352868/lib/jquery/jquery-3.2.1.min.js:1:39946

      ) at HTMLBodyElement.dispatch (

      https://demomoodle.pexipacademy.com/lib/javascript.php/1547352868/lib/jquery/jquery-3.2.1.min.js:1:42349

      ) at HTMLBodyElement.q.handle (

      https://demomoodle.pexipacademy.com/lib/javascript.php/1547352868/lib/jquery/jquery-3.2.1.min.js:1:40376

      ) at Object.trigger (

      https://demomoodle.pexipacademy.com/lib/javascript.php/1547352868/lib/jquery/jquery-3.2.1.min.js:1:69719

      ) at HTMLBodyElement.<anonymous> (

      https://demomoodle.pexipacademy.com/lib/javascript.php/1547352868/lib/jquery/jquery-3.2.1.min.js:1:70229

      ) at Function.each (

      https://demomoodle.pexipacademy.com/lib/javascript.php/1547352868/lib/jquery/jquery-3.2.1.min.js:1:2715

      ) at r.fn.init.each (

      https://demomoodle.pexipacademy.com/lib/javascript.php/1547352868/lib/jquery/jquery-3.2.1.min.js:1:1003

      ) at r.fn.init.trigger (

      https://demomoodle.pexipacademy.com/lib/javascript.php/1547352868/lib/jquery/jquery-3.2.1.min.js:1:70205

      ) at m (

      https://demomoodle.pexipacademy.com/lib/requirejs.php/1547352868/core/first.js:16:439

      )

      ```

            Unassigned Unassigned
            swinster Chris Swinney
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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