From 7c11319ad7e8cd352d47b155d6e5a47c8aa99fdd Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sun, 15 Feb 2004 20:03:28 +0000 Subject: [PATCH] Modified calls to add_to_log() function to include cmid at the end. It was missing in "over allocatio" and "grade" logs. --- mod/workshop/assessments.php | 2 +- mod/workshop/submissions.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 "".get_string("savedok", "workshop")."
\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"); }