MDL-80715 core_courseformat: delegate section and cm rename

This commit is contained in:
Ferran Recio
2024-03-20 16:51:12 +01:00
committed by ferranrecio
parent c74a5439f6
commit fbbb86a2a6
11 changed files with 285 additions and 1 deletions
+6 -1
View File
@@ -104,7 +104,12 @@ $editoroptions = array(
);
$courseformat = course_get_format($course);
$defaultsectionname = $courseformat->get_default_section_name($section);
if ($sectioninfo->is_delegated()) {
$defaultsectionname = $sectioninfo->name;
} else {
$defaultsectionname = $courseformat->get_default_section_name($section);
}
$customdata = [
'cs' => $sectioninfo,