Permalink
Browse files

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

… grading summary screen
  • Loading branch information...
1 parent 9de65ff commit bf57184c28caf4ae56d869e3a4ac6fbd8162d8af Raymond Wijaya committed with marinaglancy Jun 7, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/assign/renderer.php
View
@@ -262,8 +262,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 bf57184

Please sign in to comment.