mirror of
https://github.com/moodle/moodle.git
synced 2025-01-22 08:11:26 +01:00
Modified calls to add_to_log() function to include cmid at the end. It was missing
in "over allocatio" and "grade" logs.
This commit is contained in:
parent
d09ce61d1a
commit
7c11319ad7
@ -948,7 +948,7 @@
|
||||
echo "<CENTRE><B>".get_string("savedok", "workshop")."</B></CENTRE><BR>\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" :
|
||||
|
@ -1410,7 +1410,7 @@
|
||||
|
||||
set_field("workshop", "overallocation", $form->overallocation, "id", $workshop->id);
|
||||
echo "<p align=\"center\"><b>".get_string("overallocation", "workshop").": $form->overallocation</b></p>\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");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user