MDL-78385 course: fix non-AJAX activity indentation URL parameter.

This commit is contained in:
Paul Holden 2023-06-14 12:58:13 +01:00
parent 71c36d2de1
commit e3583a2302
No known key found for this signature in database
GPG Key ID: A81A96D6045F6164

View File

@ -1738,7 +1738,7 @@ function course_get_cm_edit_actions(cm_info $mod, $indent = -1, $sr = null) {
$enabledclass = '';
}
$actions['moveleft'] = new action_menu_link_secondary(
new moodle_url($baseurl, ['id' => $mod->id, 'indent' => '0']),
new moodle_url($baseurl, ['id' => $mod->id, 'indent' => '-1']),
new pix_icon($leftarrow, '', 'moodle', ['class' => 'iconsmall']),
$str->moveleft,
[