mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-78080 course: Duplicate section: Copy custom section options
This commit is contained in:
parent
acf5e44fde
commit
23567ce725
@ -2063,6 +2063,9 @@ abstract class base {
|
||||
$newsectiondata->summaryformat = $originalsection->summaryformat;
|
||||
$newsectiondata->visible = $originalsection->visible;
|
||||
$newsectiondata->availability = $originalsection->availability;
|
||||
foreach ($this->section_format_options() as $key => $value) {
|
||||
$newsectiondata->$key = $originalsection->$key;
|
||||
}
|
||||
course_update_section($course, $newsection, $newsectiondata);
|
||||
|
||||
$modinfo = $this->get_modinfo();
|
||||
|
Loading…
x
Reference in New Issue
Block a user