Merge branch 'MDL-73735_duplicate-line-course-rest-php' of https://github.com/ziegenberg/moodle

This commit is contained in:
Huong Nguyen 2024-06-03 11:52:23 +07:00
commit 6e1197d0bf
No known key found for this signature in database
GPG Key ID: 40D88AB693A3E72A

View File

@ -78,7 +78,6 @@ if ($class === 'section' && $field === 'move') {
if ($beforeid > 0) {
$beforemod = get_coursemodule_from_id('', $beforeid, $course->id);
$beforemod = $DB->get_record('course_modules', array('id' => $beforeid));
} else {
$beforemod = null;
}