mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Bug solved restoring in existing course.
This commit is contained in:
parent
59728e8d4a
commit
c05d9c3ee8
@ -402,6 +402,13 @@
|
||||
if ($status) {
|
||||
$rec->id = $newid;
|
||||
$rec->sequence = $sequence;
|
||||
//Unset other fields before update (we don't want them)
|
||||
//Only need id and sequence !! Previously, existing bug
|
||||
//because update without addslashes in summary
|
||||
unset($rec->course);
|
||||
unset($rec->section);
|
||||
unset($rec->summary);
|
||||
unset($rec->visible);
|
||||
$status = update_record("course_sections",$rec);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user