We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c4fbc2 commit c4b9e0fCopy full SHA for c4b9e0f
1 file changed
classes/courseformat/sectionactions.php
@@ -73,7 +73,7 @@ public function create_from_object(stdClass $fields, bool $skipcheck = false): s
73
'timemodified' => time(),
74
];
75
$sectionrecord->id = $DB->insert_record("course_sections", $sectionrecord);
76
- if (!($skipcheck && ($createnum > 0))) {
+ if (empty($fields->component) && !($skipcheck && ($createnum > 0))) {
77
$DB->insert_record("course_format_options", [
78
'courseid' => $this->course->id,
79
'format' => 'multitopic',
0 commit comments