Skip to content
Browse files

Made assignment submission counting more robust

  • Loading branch information...
1 parent 5f90f9f commit cc1ec30e2da0da164981574d6d09e1ca6f3dcd21 moodler committed Jul 3, 2004
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/assignment/lib.php
View
2 mod/assignment/lib.php
@@ -411,7 +411,7 @@ function assignment_count_real_submissions($assignment, $groupid=0) {
global $CFG;
if ($groupid) { /// How many in a particular group?
- return count_records_sql("SELECT COUNT(*)
+ return count_records_sql("SELECT COUNT(DISTINCT g.userid, g.groupid)
FROM {$CFG->prefix}assignment_submissions a,
{$CFG->prefix}groups_members g
WHERE a.assignment = $assignment->id

0 comments on commit cc1ec30

Please sign in to comment.
Something went wrong with that request. Please try again.