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

Filtering in Assignment grading interface throws a javascript error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1, 3.1.1, 3.1.2, 3.2
    • Fix Version/s: 3.1.3
    • Component/s: Assignment
    • Labels:
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-56300_master

      Description

      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.

        Attachments

        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

          Activity

            People

            Assignee:
            pferre22 Pau Ferrer
            Reporter:
            reskit Marc Català
            Peer reviewer:
            Dan Poltawski
            Integrator:
            Eloy Lafuente (stronk7)
            Tester:
            Jun Pataleta
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              14/Nov/16