From 8f34ecdb7abd143fa8468c8854a136cd8021d43a Mon Sep 17 00:00:00 2001 From: Eric Merrill Date: Wed, 8 Aug 2012 10:01:28 -0400 Subject: [PATCH] MDL-34376 mod_assign Omit assigns with no due date from print_overview. Modify assign_print_overview to omit assigns that have no due date set, in line with behaviour in 2.2 and other tools. --- mod/assign/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/assign/lib.php b/mod/assign/lib.php index a6cdba7f1fc..5ca8423c5c9 100644 --- a/mod/assign/lib.php +++ b/mod/assign/lib.php @@ -212,8 +212,8 @@ function assign_print_overview($courses, &$htmlarray) { // Do assignment_base::isopen() here without loading the whole thing for speed foreach ($assignments as $key => $assignment) { $time = time(); - $isopen = $assignment->allowsubmissionsfromdate <= $time; if ($assignment->duedate) { + $isopen = $assignment->allowsubmissionsfromdate <= $time; if ($assignment->preventlatesubmissions) { $isopen = ($isopen && $time <= $assignment->duedate); }