diff --git a/course/format/weeks/format.php b/course/format/weeks/format.php index 5f864253067..b351d88d5cd 100644 --- a/course/format/weeks/format.php +++ b/course/format/weeks/format.php @@ -144,6 +144,7 @@ $thissection->course = $course->id; // Create a new week structure $thissection->section = $section; $thissection->summary = ''; + $thissection->summaryformat = FORMAT_HTML; $thissection->visible = 1; $thissection->id = $DB->insert_record('course_sections', $thissection); }