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

Filtering in Assignment grading interface throws a javascript error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.1.3
    • 3.1, 3.1.1, 3.1.2, 3.2
    • Assignment
    • MOODLE_31_STABLE, MOODLE_32_STABLE
    • MOODLE_31_STABLE
    • MDL-56300_master
    • Hide
      1. Create an assignment in a course with at least 3 students
      2. Log in as the last student ordered by lastname, and submit the assignment (1_student.png)
      3. Log in as a teacher, enter the assignment and grade the previous submission (using the new grading interface) (2_assign.png, 3_grade.png)
      4. Without leaving the grading page, filter by 'Requires grading' using the funnel icon. (4_filter.png)
      5. Ensure no javascript error is thrown in the browser console.
      Show
      Create an assignment in a course with at least 3 students Log in as the last student ordered by lastname, and submit the assignment (1_student.png) Log in as a teacher, enter the assignment and grade the previous submission (using the new grading interface) (2_assign.png, 3_grade.png) Without leaving the grading page, filter by 'Requires grading' using the funnel icon. (4_filter.png) Ensure no javascript error is thrown in the browser console.

      When a teacher is in the grading interface can filter users by several options, but sometimes when a filter is selected the browser throws the error "TypeError: this._filteredUsers[l] is undefined" and the filter selected is not applied.

      The error above is caused because the code is trying to use the same index in _users and _filteredUsers arrays, when _filteredUsers is a subset of _users.

        1. 1_student.png
          1_student.png
          77 kB
        2. 2_assign.png
          2_assign.png
          47 kB
        3. 3_grade.png
          3_grade.png
          103 kB
        4. 4_filter.png
          4_filter.png
          12 kB

            pferre22 Pau Ferrer
            reskit Marc Català
            Dan Poltawski Dan Poltawski
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Jun Pataleta Jun Pataleta
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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