Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-34321 Assignment2.2 - Fixing submission count

  • Loading branch information...
commit 9fc09121a890fc02797b7caaaf81850f5a090704 1 parent 3e6e38b
@jsnfwlr jsnfwlr authored
View
2  mod/assignment/lib.php
@@ -1933,7 +1933,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.
Please sign in to comment.
Something went wrong with that request. Please try again.