Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.8.3
-
Fix Version/s: 2.8.4
-
Component/s: Activity completion, Competencies, Quiz
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_28_STABLE
-
Fixed Branches:MOODLE_28_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-49160-master -
Pull Master Diff URL:
Description
If you have outcomes enabled for a quiz, and you activate activity completion - passing grade, when the completes the quiz (or a teacher goes to manually grade items), the error "Found more than one record in fetch() !" is thrown.
This is because quiz_get_completion_state does not provide enough restrictions on grade_item::fetch to make sure it is getting the true grade item, not the outcome grade items.