Permalink
Browse files

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

…grading summary screen
  • Loading branch information...
1 parent 94e36bc commit 17e37c57e42cc4b73d9788da45681e1ff3a7e189 Raymond Wijaya committed with marinaglancy Jun 7, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 mod/assign/renderer.php
View
@@ -246,11 +246,11 @@ public function render_assign_grading_summary(assign_grading_summary $summary) {
$this->add_table_row_tuple($t, get_string('numberofparticipants', 'assign'),
$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) {

0 comments on commit 17e37c5

Please sign in to comment.