diff --git a/mod/workshop/assessments.php b/mod/workshop/assessments.php
index b61b84571da..43597a6750c 100644
--- a/mod/workshop/assessments.php
+++ b/mod/workshop/assessments.php
@@ -948,7 +948,7 @@
echo "
\n";
add_to_log($course->id, "workshop", "grade",
- "assessments.php?action=viewassessment&id=$cm->id&aid=$assessment->id", "$assessment->id");
+ "assessments.php?action=viewassessment&id=$cm->id&aid=$assessment->id", "$assessment->id", "$cm->id");
}
switch ($form->stype) {
case "student" :
diff --git a/mod/workshop/submissions.php b/mod/workshop/submissions.php
index 9db8a9d2764..b05b2b1c44d 100644
--- a/mod/workshop/submissions.php
+++ b/mod/workshop/submissions.php
@@ -1410,7 +1410,7 @@
set_field("workshop", "overallocation", $form->overallocation, "id", $workshop->id);
echo "
".get_string("overallocation", "workshop").": $form->overallocation
\n"; - add_to_log($course->id, "workshop", "over allocation", "view.php?id=$cm->id", $form->overallocation); + add_to_log($course->id, "workshop", "over allocation", "view.php?id=$cm->id", $form->overallocation,$cm->id); redirect("submissions.php?action=adminlist&id=$cm->id"); }