Permalink
Browse files

Fix bug in Analysis of Assessments

  • Loading branch information...
1 parent 298698a commit 9748030a8f5ae76e5c1af2b4e6d8d8ec6a488ed7 rkingdon committed Jan 20, 2004
Showing with 8 additions and 3 deletions.
  1. +1 −0 mod/workshop/lib.php
  2. +4 −0 mod/workshop/submissions.php
  3. +2 −3 mod/workshop/upload.php
  4. +1 −0 mod/workshop/view.php
View
@@ -3400,6 +3400,7 @@ function workshop_print_league_table($workshop) {
}
print_heading(get_string("leaguetable", "workshop"));
print_table($table);
+ echo "<p>&lt; &gt; ".get_string("assessmentdropped", "workshop")."</p>\n";
}
}
@@ -621,6 +621,10 @@
number_format($finalgrade, 2));
}
// 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",
$submission->id);
set_field("workshop_submissions", "gradinggrade", intval($assessmentgrade + 0.5), "id",
View
@@ -21,8 +21,6 @@
require_login($course->id);
- add_to_log($course->id, "workshop", "submit", "view.php?id=$cm->id", "$workshop->id");
-
if ($course->category) {
$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")) {
print_heading(get_string("uploadsuccess", "assignment", $newfile_name) );
- }
+ add_to_log($course->id, "workshop", "submit", "view.php?id=$cm->id", "$workshop->id");
+ }
else {
notify(get_string("uploaderror", "assignment") );
}
View
@@ -274,6 +274,7 @@
}
}
echo "</TABLE><BR CLEAR=ALL>\n";
+ echo "<p>&lt; &gt; ".get_string("assessmentdropped", "workshop")."</p>\n";
if ($workshop->showleaguetable) {
workshop_print_league_table($workshop);
}

0 comments on commit 9748030

Please sign in to comment.