MDL-78080 course: Duplicate section: Duplicate by section id, not num
This commit is contained in:
@@ -155,8 +155,8 @@ class controlmenu implements named_templatable, renderable {
|
||||
|
||||
if ($section->section) {
|
||||
$duplicatesectionurl = clone($baseurl);
|
||||
$duplicatesectionurl->param('section', $section->section);
|
||||
$duplicatesectionurl->param('duplicatesection', $section->section);
|
||||
$duplicatesectionurl->param('sectionid', $section->id);
|
||||
$duplicatesectionurl->param('duplicatesection', 1);
|
||||
$controls['duplicate'] = [
|
||||
'url' => $duplicatesectionurl,
|
||||
'icon' => 't/copy',
|
||||
|
||||
Reference in New Issue
Block a user