You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the assignment activity, when "Advanced Grading" is enabled and both the rubric form and the marking guide form are completed, an error occurs when clicking on the "Marking Guide Breakdown Report" tab.
In debug mode, the error message indicates that the 'get_grading_definition' method returns more than one row.
To resolve this issue, we have added the active method to the request.
diff --git a/report/advancedgrading/locallib.php b/report/advancedgrading/locallib.php
--
index a512544e478..25a3f33c24f 100644
--- a/report/advancedgrading/locallib.php
+++ b/report/advancedgrading/locallib.php
@@ -46,7 +46,8 @@ function get_grading_definition(int $assignid): \stdClass {
JOIN {context} ctx ON ctx.instanceid = cm.id
JOIN {grading_areas} ga ON ctx.id=ga.contextid
JOIN {grading_definitions} gdef ON ga.id = gdef.areaid
- WHERE assign.id = :assignid";
+ WHERE gdef.method = ga.activemethod
+ AND assign.id = :assignid";
$definition = $DB->get_record_sql($sql, ['assignid' => $assignid]);
return $definition;
}
I hope this helps!
Best regards,
Yannick
The text was updated successfully, but these errors were encountered:
Hello,
In the assignment activity, when "Advanced Grading" is enabled and both the rubric form and the marking guide form are completed, an error occurs when clicking on the "Marking Guide Breakdown Report" tab.
In debug mode, the error message indicates that the 'get_grading_definition' method returns more than one row.
To resolve this issue, we have added the active method to the request.
I hope this helps!
Best regards,
Yannick
The text was updated successfully, but these errors were encountered: