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.
This commit is contained in:
Eric Merrill
2012-08-08 10:01:28 -04:00
parent 470d47f512
commit 8f34ecdb7a
+1 -1
View File
@@ -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);
}