-
Bug
-
Resolution: Fixed
-
Minor
-
4.3.9, 4.4.5
-
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
- Create a course (do not enrol students on it)
- Create a Feedback activity
- Create a new Question in the Feedback activity
- Click on Responses in the secondary navigation
- Click on Show non-respondents in the tertiary navigation
- An exception will appear