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

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

XMLWordPrintable

      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.

            rezaie9 Shamim Rezaie
            sarjona Sara Arjona (@sarjona)
            Damyon Wiese Damyon Wiese
            Adrian Greeve Adrian Greeve
            CiBoT CiBoT
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                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

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