]> git.mjollnir.org Git - moodle.git/commitdiff
Instantiating a full $grade_item object, otherwise the get_displaytype() method is...
authornicolasconnault <nicolasconnault>
Thu, 4 Oct 2007 07:44:13 +0000 (07:44 +0000)
committernicolasconnault <nicolasconnault>
Thu, 4 Oct 2007 07:44:13 +0000 (07:44 +0000)
grade/edit/tree/outcomeitem.php

index 6bea8b76b53e9265a753937b5eb8ba76ebaac1d6..aa90c21522674127be2c6efe2d415912bf19c0af 100644 (file)
@@ -40,6 +40,7 @@ if ($item = get_record('grade_items', 'id', $id, 'courseid', $course->id)) {
     } else {
         $item->cmid = 0;
     }
+    $item = new grade_item($item);
 
 } else {
     $item = new grade_item(array('courseid'=>$courseid, 'itemtype'=>'manual'));