Permalink
Browse files

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.
  • Loading branch information...
1 parent 02814bf commit 383639a5ef9bbb7db376518bf3eaabf1cbe73ef7 @merrill-oakland merrill-oakland committed Aug 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/assign/lib.php
View
@@ -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);
}

0 comments on commit 383639a

Please sign in to comment.