mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
Fix bug in Analysis of Assessments
This commit is contained in:
parent
298698ae60
commit
9748030a8f
4 changed files with 8 additions and 3 deletions
|
@ -3400,6 +3400,7 @@ function workshop_print_league_table($workshop) {
|
||||||
}
|
}
|
||||||
print_heading(get_string("leaguetable", "workshop"));
|
print_heading(get_string("leaguetable", "workshop"));
|
||||||
print_table($table);
|
print_table($table);
|
||||||
|
echo "<p>< > ".get_string("assessmentdropped", "workshop")."</p>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -621,6 +621,10 @@
|
||||||
number_format($finalgrade, 2));
|
number_format($finalgrade, 2));
|
||||||
}
|
}
|
||||||
// save grades in submission record
|
// save grades in submission record
|
||||||
|
set_field("workshop_submissions", "teachergrade", intval($submissiongrade + 0.5), "id",
|
||||||
|
$submission->id);
|
||||||
|
set_field("workshop_submissions", "peergrade", intval($submissiongrade + 0.5), "id",
|
||||||
|
$submission->id);
|
||||||
set_field("workshop_submissions", "finalgrade", intval($finalgrade + 0.5), "id",
|
set_field("workshop_submissions", "finalgrade", intval($finalgrade + 0.5), "id",
|
||||||
$submission->id);
|
$submission->id);
|
||||||
set_field("workshop_submissions", "gradinggrade", intval($assessmentgrade + 0.5), "id",
|
set_field("workshop_submissions", "gradinggrade", intval($assessmentgrade + 0.5), "id",
|
||||||
|
|
|
@ -21,8 +21,6 @@
|
||||||
|
|
||||||
require_login($course->id);
|
require_login($course->id);
|
||||||
|
|
||||||
add_to_log($course->id, "workshop", "submit", "view.php?id=$cm->id", "$workshop->id");
|
|
||||||
|
|
||||||
if ($course->category) {
|
if ($course->category) {
|
||||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
||||||
}
|
}
|
||||||
|
@ -98,7 +96,8 @@
|
||||||
}
|
}
|
||||||
if (move_uploaded_file($newfile['tmp_name'], "$dir/$newfile_name")) {
|
if (move_uploaded_file($newfile['tmp_name'], "$dir/$newfile_name")) {
|
||||||
print_heading(get_string("uploadsuccess", "assignment", $newfile_name) );
|
print_heading(get_string("uploadsuccess", "assignment", $newfile_name) );
|
||||||
}
|
add_to_log($course->id, "workshop", "submit", "view.php?id=$cm->id", "$workshop->id");
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
notify(get_string("uploaderror", "assignment") );
|
notify(get_string("uploaderror", "assignment") );
|
||||||
}
|
}
|
||||||
|
|
|
@ -274,6 +274,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo "</TABLE><BR CLEAR=ALL>\n";
|
echo "</TABLE><BR CLEAR=ALL>\n";
|
||||||
|
echo "<p>< > ".get_string("assessmentdropped", "workshop")."</p>\n";
|
||||||
if ($workshop->showleaguetable) {
|
if ($workshop->showleaguetable) {
|
||||||
workshop_print_league_table($workshop);
|
workshop_print_league_table($workshop);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue