mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
NOBUG: Fix notice (and something more?). Like MDL-12961 but in data module; merged from 19_STABLE
This commit is contained in:
parent
07e1428995
commit
1fb0e43005
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user