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:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user