mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merged from stable branch
This commit is contained in:
parent
85a93d9a33
commit
08cfe9806c
@ -416,7 +416,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
|
||||
|
Loading…
x
Reference in New Issue
Block a user