From 27fb07f87b95906f227ba0a7aaec5aaad46bc8bf Mon Sep 17 00:00:00 2001 From: piers Date: Wed, 20 Aug 2008 22:29:33 +0000 Subject: [PATCH] MDL-13431 - SCORM results not transferring to Gradebook. Use the correct method for getting the course object. Backport 1.9. --- mod/scorm/datamodel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/scorm/datamodel.php b/mod/scorm/datamodel.php index d4b4cb43065..3b3a4dd4b85 100755 --- a/mod/scorm/datamodel.php +++ b/mod/scorm/datamodel.php @@ -10,7 +10,7 @@ if (!empty($id)) { - if (! $cm = get_record("course_modules", "id", $id)) { + if (! $cm = get_coursemodule_from_id('scorm', $id)) { error("Course Module ID was incorrect"); } if (! $course = get_record("course", "id", $cm->course)) {