Assignment Module breaks MyMoodle Page MDL-6802, please test it

This commit is contained in:
skodak 2006-10-03 18:31:51 +00:00
parent c008cd2fcf
commit 9731624c87

View File

@ -2410,8 +2410,7 @@ function assignment_print_overview($courses, &$htmlarray) {
} else {
$str .= '<div class="info">'.$strduedateno.'</div>';
}
$context = get_context_instance(CONTEXT_MODULE,$this->cm->id);
$context = get_context_instance(CONTEXT_MODULE, $assignment->cm->id);
if (has_capability('mod/assignment:grade', $context)) {
// count how many people can submit