mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-78080 course: Duplicate section: Duplicate by section id, not num
This commit is contained in:
parent
7cde0e9984
commit
7dca6d0e3b
@ -195,8 +195,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);
|
||||
if (!is_null($sectionreturn)) {
|
||||
$duplicatesectionurl->param('sr', $sectionreturn);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user