Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Made assignment submission counting more robust

  • Loading branch information...
commit cc1ec30e2da0da164981574d6d09e1ca6f3dcd21 1 parent 5f90f9f
moodler authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.