Skip to content

Commit

Permalink
MDL-34321 Assignment2.2 - Fixing submission count
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnfwlr committed Dec 12, 2013
1 parent c36a240 commit 8710154
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mod/assignment/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion mod/assignment/type/upload/assignment.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
Expand Down
2 changes: 1 addition & 1 deletion mod/assignment/type/uploadsingle/assignment.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8710154

Please sign in to comment.