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

Exception on feedback "Show non-respondents"

XMLWordPrintable

    • 1
    • HQ 2024 Planning I4 Moppies

      When accessing "Show non-respondents" page without users with the "mod/feedback:complete" capability in the course an exception is raised

      TypeError
      count(): Argument #1 ($value) must be of type Countable|array, bool given
      …/mod/feedback/show_nonrespondents.php:220
      

      That probably happens because "feedback_get_incomplete_users" function returns "false" instead of an empty array in that specific return path.

      Steps to reproduce

      1. Create a course (do not enrol students on it)
      2. Create a Feedback activity
      3. Create a new Question in the Feedback activity
      4. Click on Responses in the secondary navigation
      5. Click on Show non-respondents in the tertiary navigation
      6. An exception will appear

        1. (1) 3 Passed -- (Main)MDL-83457.png
          61 kB
          Kim Jared Lucas
        2. screenshot-1.png
          29 kB
          Mikel Martín Corrales

            mikelmartíncorrales Mikel Martín Corrales
            mikelmartíncorrales Mikel Martín Corrales
            Paul Holden Paul Holden
            Jun Pataleta Jun Pataleta
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 7 hours, 26 minutes
                7h 26m

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