mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +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
|
@ -22,8 +22,9 @@ class editsection_form extends moodleform {
|
|||
$mform->disabledIf('name','usedefaultname','checked');
|
||||
|
||||
/// Prepare course and the editor
|
||||
|
||||
$mform->addElement('editor', 'summary', get_string('summary'), null, $this->_customdata['editoroptions']);
|
||||
|
||||
$mform->addElement('editor', 'summary_editor', get_string('summary'), null, $this->_customdata['editoroptions']);
|
||||
$mform->setType('summary_editor', PARAM_RAW);
|
||||
|
||||
$mform->addElement('hidden', 'id');
|
||||
$mform->setType('id', PARAM_INT);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue