Skip to content

Commit

Permalink
Return to course page after saving section - M4.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Apr 4, 2024
1 parent e52b2b8 commit 8652473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ public function get_view_url($section, $options = []) {
} else {
$sectionno = $section;
}
if ((!empty($options['navigation']) || array_key_exists('sr', $options)) && $sectionno !== null) {
if (!empty($options['navigation']) && $sectionno !== null) {
// Display section on separate page.
$sectioninfo = $this->get_section($sectionno);
return new moodle_url('/course/section.php', ['id' => $sectioninfo->id]);
Expand Down

0 comments on commit 8652473

Please sign in to comment.