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

"userisfilteredout" error in assignment when attempting to grade with "Grade" and a filter is set which returns an empty submissions list.

    XMLWordPrintable

Details

    • MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE
    • MOODLE_402_STABLE, MOODLE_403_STABLE
    • MDL-76719-402
    • MDL-76719-403
    • Hide
      1. Log in as admin
      2. Create two new users:
        • Student One
        • Student Two
      3. Create a course
      4. Enrol both users as a student on the course
      5. Add an Assignment activity to the course
      6. Navigate to course assignment activity
      7. Press Grade
      8. Confirm user information is shown
      9. Open the Filter element (top right of the page, next to the 1 of 2 text)
      10. Set Filter to Submitted
      11. Confirm you see the text No users selected at top of page
      12. Navigate back to the assignment activity, and press Grade again
      13. Confirm you see the text No users selected at top of page
      14. Confirm there is no error on the page
      15. Re-open the Filter element
      16. Set Filter to No filter
      17. Confirm user information is shown
      Show
      Log in as admin Create two new users: Student One Student Two Create a course Enrol both users as a student on the course Add an Assignment activity to the course Navigate to course assignment activity Press Grade Confirm user information is shown Open the Filter element (top right of the page, next to the 1 of 2 text) Set Filter to Submitted Confirm you see the text No users selected at top of page Navigate back to the assignment activity, and press Grade again Confirm you see the text No users selected at top of page Confirm there is no error on the page Re-open the Filter element Set Filter to No filter Confirm user information is shown
    • 3

    Description

      In an assignment, when you filter and choose "evaluate", you get an error message "userisfilteredout".
      When the filter is activated, the current user is not chosen among those filtered, which causes the error.

      STEPS TO REPRODUCE

      • Have an assignment with participants, some of whom submitted a work and all of them are graded.
      • Choose "View all submissions".
      • The filter in the footer is at "no filter".
      • Set the filter to "Requires grading" and wait until the automatic page reload is done.
      • Choose "Back" at the top of the page.
      • Then choose "Grade".
      • The message "userisfilterout" is displayed.

      userisfilteredout
      This user does not match filters and table preferences!
      File: /mod/assign/externallib.php
      Line: 2852
      Stack trace:
       
      Error code: userisfilteredout
      * line 2852 of /mod/assign/externallib.php: moodle_exception thrown
      * line 261 of /lib/externallib.php: call to mod_assign_external::get_participant()
      * line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
      

      This works also with other filters returning no result e.g. in https://qa.moodledemo.net/mod/assign/view.php?id=1011 when filtering for "requires grading" (because there is no submission there yet) and trying to grade.

      Attachments

        1. 76719 exception.png
          76719 exception.png
          36 kB
        2. Capture d’écran 2022-12-19 122334.jpg
          Capture d’écran 2022-12-19 122334.jpg
          57 kB
        3. MDL-76719_1.png
          MDL-76719_1.png
          83 kB
        4. MDL-76719_2.png
          MDL-76719_2.png
          47 kB
        5. MDL-76719_3.png
          MDL-76719_3.png
          31 kB
        6. MDL-76719_4.png
          MDL-76719_4.png
          86 kB
        7. MDL-76719.png
          MDL-76719.png
          295 kB

        Issue Links

          Activity

            People

              pholden Paul Holden
              cenault Enault
              Mathew May Mathew May
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              Angelia Dela Cruz Angelia Dela Cruz
              Votes:
              64 Vote for this issue
              Watchers:
              66 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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

                  Clockify

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