Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-40093 mod/assign: Remove count of drafts in offline assignment's …

…grading summary screen
  • Loading branch information...
commit 622425d2fbeade0f6fbd4c8b49faa67e3b967630 1 parent ed79029
@raymondAntonio raymondAntonio authored marinaglancy committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 mod/assign/renderer.php
View
6 mod/assign/renderer.php
@@ -251,11 +251,11 @@ public function render_assign_grading_summary(assign_grading_summary $summary) {
$summary->participantcount);
}
- // drafts
- if ($summary->submissiondraftsenabled) {
+ // Drafts count and dont show drafts count when using offline assignment.
+ if ($summary->submissiondraftsenabled && $summary->submissionsenabled) {
$this->add_table_row_tuple($t, get_string('numberofdraftsubmissions', 'assign'),
$summary->submissiondraftscount);
- }
+ }
// submitted for grading
if ($summary->submissionsenabled) {
Please sign in to comment.
Something went wrong with that request. Please try again.