]> git.mjollnir.org Git - moodle.git/commitdiff
NOBUG: Fix notice (and something more?). Like MDL-12961 but in data module; merged...
authorEloy Lafuente <stronk7@moodle.org>
Wed, 13 Jan 2010 16:50:27 +0000 (16:50 +0000)
committerEloy Lafuente <stronk7@moodle.org>
Wed, 13 Jan 2010 16:50:27 +0000 (16:50 +0000)
mod/data/rate.php

index 9e05cd085d586fb4d33e413a33d3a9c708018bb7..91682656b2a073432fb8a3b9b4ea9e6a1d16c0c8 100755 (executable)
@@ -17,6 +17,8 @@ if (!$course = $DB->get_record('course', array('id'=>$data->course))) {
 
 if (!$cm = get_coursemodule_from_instance('data', $data->id)) {
     print_error('invalidcoursemodule');
+} else {
+    $data->cmidnumber = $cm->id; //MDL-12961
 }
 
 require_login($course, false, $cm);