Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removal of debugging code; fixed bug in _get_student_submissions routine

  • Loading branch information...
commit d90f8c6a54a2269a383111eb6b5d4d3b19e6068d 1 parent 9380866
rkingdon authored
Showing with 2 additions and 7 deletions.
  1. +2 −7 mod/workshop/lib.php
9 mod/workshop/lib.php
View
@@ -1012,10 +1012,10 @@ function workshop_get_student_submissions($workshop, $order = "title") {
$order = "firstname, lastname";
}
return get_records_sql("SELECT s.* FROM {$CFG->prefix}workshop_submissions s, {$CFG->prefix}user_students u,
- {$CFG->prefix}user
+ {$CFG->prefix}user a
WHERE u.course = $workshop->course
AND s.userid = u.userid
- AND user.id = u.userid
+ AND a.id = u.userid
AND s.workshopid = $workshop->id
AND s.timecreated > 0
ORDER BY $order");
@@ -1641,11 +1641,6 @@ function workshop_list_teacher_submissions($workshop, $user) {
// put the submissions with the lowest number of assessments first
asort($nassessments);
reset($nassessments);
-
- echo "<PRE>";
- print_r($nassessments);
-
- reset($nassessments);
$comment = "";
foreach ($nassessments as $submissionid => $n) { // actually only the first one is displayed...
$comment = '';
Please sign in to comment.
Something went wrong with that request. Please try again.