mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-22729 Course sections can be re-edited again
By the way, the current style of creating course_sections is ugly. We should probably have something like make_sure_that_at_least_default_section_exists($courseid, $sectionid=null) and not to insert it into database at many places as we do now.
This commit is contained in:
parent
33b1a40639
commit
09eb215121
8 changed files with 17 additions and 14 deletions
|
@ -98,7 +98,7 @@
|
|||
$section->course = $SITE->id;
|
||||
$section->section = 1;
|
||||
$section->summary = '';
|
||||
$section->summaryformat = '0';
|
||||
$section->summaryformat = FORMAT_HTML;
|
||||
$section->sequence = '';
|
||||
$section->visible = 1;
|
||||
$section->id = $DB->insert_record('course_sections', $section);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue