mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Added suport to new restoreto options
This commit is contained in:
parent
ed8ee0910c
commit
642ac84855
@ -339,7 +339,7 @@
|
||||
$section->sequence = "";
|
||||
//Now calculate the section's newid
|
||||
$newid = 0;
|
||||
if ($restore->restoreto == 1) {
|
||||
if ($restore->restoreto == 2) {
|
||||
//Save it to db (only if restoring to new course)
|
||||
$newid = insert_record("course_sections",$section);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user