Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.7.4, 3.8.1, 3.9
-
Component/s: Quiz
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
-
Fixed Branches:MOODLE_37_STABLE, MOODLE_38_STABLE
-
Pull from Repository:
-
Pull 3.8 Branch:
MDL-67830_38 -
Pull Master Branch:
-
Pull Master Diff URL:
Description
To reproduce:
- Create a course.
- Add a quiz.
- Add a true-false question.
- Attempt the quiz as a student.
- As a teacher, go to the gradebook, grader report.
- Find the student's grade, and click the 'Grade analysis' magnifying glass icon.
Actual result: an error appears in the logs:
Warning: count(): Parameter must be an array or an object that implements Countable in /.../www/html/vle/mod/quiz/attemptlib.php on line 1501 Call Stack:
0.0012 424440 1. {main}() /.../www/html/vle/mod/quiz/grade.php:0
|
1.3443 40166040 2. quiz_attempt->review_url() /.../www/html/vle/mod/quiz/grade.php:84
|
1.3443 40166040 3. quiz_attempt->page_and_question_url() /.../www/html/vle/mod/quiz/attemptlib.php:1492
|
1.3443 40166040 4. quiz_attempt->get_default_show_all() /.../www/html/vle/mod/quiz/attemptlib.php:2151
|