Permalink
Browse files

MDL-34691 assign: Time remaining "Assignment is overdue" was incorrec…

…tly being displayed when a student viewed a submitted assignment after the due date.
  • Loading branch information...
1 parent 55a568f commit 84a8492a02e4ad14a85a0ce9298e3c107d49486d Matt Switlik committed Aug 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/assign/renderer.php
View
@@ -420,7 +420,7 @@ public function render_assign_submission_status(assign_submission_status $status
$row = new html_table_row();
$cell1 = new html_table_cell(get_string('timeremaining', 'assign'));
if ($duedate - $time <= 0) {
- if (!$status->submission || $status->submission != ASSIGN_SUBMISSION_STATUS_SUBMITTED) {
+ if (!$status->submission || $status->submission->status != ASSIGN_SUBMISSION_STATUS_SUBMITTED) {
if ($status->submissionsenabled) {
$cell2 = new html_table_cell(get_string('overdue', 'assign', format_time($time - $duedate)));
$cell2->attributes = array('class'=>'overdue');

0 comments on commit 84a8492

Please sign in to comment.