We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 672f790 commit 36e6725Copy full SHA for 36e6725
classes/output/courseformat/content/cm/delegatedcontrolmenu.php
@@ -37,6 +37,22 @@ protected function get_section_view_item(): ?link {
37
return null;
38
}
39
40
+ /**
41
+ * Retrieves the edit item for the section control menu.
42
+ *
43
+ * @return link|null The menu item if applicable, otherwise null.
44
+ */
45
+ protected function get_section_edit_item(): ?link {
46
+ $link = parent::get_section_edit_item();
47
+
48
+ if ($link) {
49
+ $link->url->remove_params('sr');
50
+ $link->url->remove_params('returnurl');
51
+ }
52
53
+ return $link;
54
55
56
/**
57
* Retrieves the permalink item for the section control menu.
58
*
0 commit comments