]> git.mjollnir.org Git - moodle.git/commitdiff
Assignment Module breaks MyMoodle Page MDL-6802, revisited - I hope it is correct now
authorskodak <skodak>
Tue, 3 Oct 2006 23:34:03 +0000 (23:34 +0000)
committerskodak <skodak>
Tue, 3 Oct 2006 23:34:03 +0000 (23:34 +0000)
mod/assignment/lib.php

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