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

Adding a permission to an activity causes a TypeError

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.6.1
    • Fix Version/s: None
    • Component/s: Course, Roles / Access
    • Labels:
      None
    • Affected Branches:
      MOODLE_36_STABLE

      Description

      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

      )

      ```

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                swinster Chris Swinney
                Participants:
                Component watchers:
                Amaia Anabitarte, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón, Amaia Anabitarte, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: