Skip to content

Commit

Permalink
MDL-12680 Assignment count for groups not working - patch by Greg Hum…
Browse files Browse the repository at this point in the history
…phreys; merged from MOODLE_19_STABLE
  • Loading branch information
skodak committed Dec 20, 2007
1 parent 67596de commit fa0b373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/assignment/lib.php
Expand Up @@ -2559,7 +2559,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(DISTINCT gm.userid, gm.groupid)
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
Expand Down

0 comments on commit fa0b373

Please sign in to comment.