Permalink
Browse files

MDL-40093_M25: mod/assign: Remove count of drafts in offline assignme…

…nt's grading summary screen
  • Loading branch information...
1 parent 4d8ff7c commit 41e7411b9daa84d9d6b7f3680447c28e8ac1a9d5 @raymondAntonio raymondAntonio committed with marinaglancy Jun 7, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/assign/renderer.php
View
4 mod/assign/renderer.php
@@ -252,8 +252,8 @@ 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);
}

0 comments on commit 41e7411

Please sign in to comment.