Skip to content

Commit

Permalink
MDL-34376 mod_assign Omit assigns with no due date from print_overview.
Browse files Browse the repository at this point in the history
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
ericmerrill committed Aug 8, 2012
1 parent 02814bf commit 383639a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/assign/lib.php
Expand Up @@ -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);
}
Expand Down

0 comments on commit 383639a

Please sign in to comment.