Skip to content
Browse files

MDL-34321 Assignment2.2 - Fixing submission count

  • Loading branch information...
1 parent 98f4a31 commit 410fff85d05efd388c09364552e3ee090b7b5bb0 @jsnfwlr jsnfwlr committed Dec 11, 2013
View
2 mod/assignment/lib.php
@@ -1935,7 +1935,7 @@ function count_real_submissions($groupid=0) {
$context = context_module::instance($this->cm->id);
// Get ids of users enrolled in the given course.
- list($enroledsql, $params) = get_enrolled_sql($context, 'mod/assignment:view', $groupid);
+ list($enroledsql, $params) = get_enrolled_sql($context, 'mod/assignment:submit', $groupid);
$params['assignmentid'] = $this->cm->instance;
// Get ids of users enrolled in the given course.
View
2 mod/assignment/type/upload/assignment.class.php
@@ -339,7 +339,7 @@ function count_real_submissions($groupid=0) {
$context = context_module::instance($this->cm->id);
// Get ids of users enrolled in the given course.
- list($enroledsql, $params) = get_enrolled_sql($context, 'mod/assignment:view', $groupid);
+ list($enroledsql, $params) = get_enrolled_sql($context, 'mod/assignment:submit', $groupid);
$params['assignmentid'] = $this->cm->instance;
$query = '';
View
2 mod/assignment/type/uploadsingle/assignment.class.php
@@ -136,7 +136,7 @@ function count_real_submissions($groupid=0) {
$context = context_module::instance($this->cm->id);
// Get ids of users enrolled in the given course.
- list($enroledsql, $params) = get_enrolled_sql($context, 'mod/assignment:view', $groupid);
+ list($enroledsql, $params) = get_enrolled_sql($context, 'mod/assignment:submit', $groupid);
$params['assignmentid'] = $this->cm->instance;
// Get ids of users enrolled in the given course.

0 comments on commit 410fff8

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