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

"Cannot read property 'filter' of undefined" when editing/overriding permissions

    XMLWordPrintable

    Details

      Description

      Steps to reproduce

      1. Access to a course activity (a forum, for instance)
      2. Access to Permissions
      3. In the "Prohibited" column, click over the +, to add a role

      The first time you click over the + (only then), you'll get the following error:

       

      Cannot read property 'filter' of undefined
      TypeError: Cannot read property 'filter' of undefined
       at HTMLBodyElement.<anonymous> (http://localhost/m/stable_36/lib/requirejs.php/1545379748/core/first.js:47:2194)
       at HTMLBodyElement.e (http://localhost/m/stable_36/lib/javascript.php/1545379748/lib/jquery/jquery-3.2.1.min.js:1:39946)
       at HTMLBodyElement.dispatch (http://localhost/m/stable_36/lib/javascript.php/1545379748/lib/jquery/jquery-3.2.1.min.js:1:42349)
       at HTMLBodyElement.q.handle (http://localhost/m/stable_36/lib/javascript.php/1545379748/lib/jquery/jquery-3.2.1.min.js:1:40376)
       at Object.trigger (http://localhost/m/stable_36/lib/javascript.php/1545379748/lib/jquery/jquery-3.2.1.min.js:1:69719)
       at HTMLBodyElement.<anonymous> (http://localhost/m/stable_36/lib/javascript.php/1545379748/lib/jquery/jquery-3.2.1.min.js:1:70229)
       at Function.each (http://localhost/m/stable_36/lib/javascript.php/1545379748/lib/jquery/jquery-3.2.1.min.js:1:2715)
       at r.fn.init.each (http://localhost/m/stable_36/lib/javascript.php/1545379748/lib/jquery/jquery-3.2.1.min.js:1:1003)
       at r.fn.init.trigger (http://localhost/m/stable_36/lib/javascript.php/1545379748/lib/jquery/jquery-3.2.1.min.js:1:70205)
       at m (http://localhost/m/stable_36/lib/requirejs.php/1545379748/core/first.js:47:439)
      

      If you close the error message and click again, you will be able to choose a role. If you reload the page, you'll get again the error if you try to add a new role.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rezaie9 Shamim Rezaie
                Reporter:
                sarjona Sara Arjona (@sarjona)
                Peer reviewer:
                Damyon Wiese
                Integrator:
                Adrian Greeve
                Tester:
                CiBoT
                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:
                3 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  8/Jul/19

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 1 hour, 5 minutes
                  1d 1h 5m