Skip to content

Commit

Permalink
V404.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Sep 24, 2024
1 parent f382d76 commit d941758
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Version Information
===================

Version 404.1.2 - 24/09/2024
----------------------------
1. Fix 'Single page shows is_section_visible()' error.

Version 404.1.1 - 22/09/2024
----------------------------
1. Show section zero if the section has meaningful content.
Expand Down
4 changes: 2 additions & 2 deletions classes/output/courseformat/content/sectionnavigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function export_for_template(\renderer_base $output): \stdClass {

$back = $this->sectionno - 1;
while ($back > 0 && empty($data->previousurl)) {
if ($canviewhidden || $format->is_section_visible($back)) {
if ($canviewhidden || $format->is_section_visible($sections[$back])) {
if (!$sections[$back]->visible) {
$data->previoushidden = true;
}
Expand All @@ -82,7 +82,7 @@ public function export_for_template(\renderer_base $output): \stdClass {
$forward = $this->sectionno + 1;
$numsections = $format->get_last_section_number();
while ($forward <= $numsections && empty($data->nexturl)) {
if ($canviewhidden || $format->is_section_visible($forward)) {
if ($canviewhidden || $format->is_section_visible($sections[$forward])) {
if (!$sections[$forward]->visible) {
$data->nexthidden = true;
}
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
*/
defined('MOODLE_INTERNAL') || die();

$plugin->version = 2024032803;
$plugin->version = 2024032804;
$plugin->maturity = MATURITY_STABLE;
$plugin->requires = 2024042200.00; // 4.4 (Build: 20240422).
$plugin->supported = [404, 404];
$plugin->component = 'format_topcoll';
$plugin->release = '404.1.1';
$plugin->release = '404.1.2';

0 comments on commit d941758

Please sign in to comment.