From: tjhunt <tjhunt>
Date: Tue, 20 Nov 2007 14:46:50 +0000 (+0000)
Subject: Remove a developer debug notice and save a database query. Merged from MOODLE_19_STABLE.
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ea16c547eea0aa7f54714767fd7f596ba5e1ec0a;p=moodle.git

Remove a developer debug notice and save a database query. Merged from MOODLE_19_STABLE.
---

diff --git a/question/editlib.php b/question/editlib.php
index 7daaf5bf52..316bbff2d7 100644
--- a/question/editlib.php
+++ b/question/editlib.php
@@ -27,6 +27,7 @@ function get_module_from_cmid($cmid){
     }
     $modrec->instance = $modrec->id;
     $modrec->cmid = $cmrec->id;
+    $cmrec->name = $modrec->name;
 
     return array($modrec, $cmrec);
 }