diff --git a/src/renderer.php b/src/renderer.php index 0a9b2fd..c651f90 100644 --- a/src/renderer.php +++ b/src/renderer.php @@ -727,6 +727,11 @@ public function get_move_section_select($section, $moveSectionUrl){ $index = 0; $index2 = 0; foreach ($this->formatrecit->sectionslist as $sectiono) { + // ignore section 0 + if($sectiono->section == 0){ + continue; + } + if ($section->section == $sectiono->section){ break; } @@ -734,6 +739,11 @@ public function get_move_section_select($section, $moveSectionUrl){ } foreach ($this->formatrecit->sectionslist as $sectiono) { + // ignore section 0 + if($sectiono->section == 0){ + continue; + } + $sectionName = $this->formatrecit->get_section_name($sectiono); $url = sprintf($moveSectionUrl, 0-($index-$index2)); $sectionname .= ""; diff --git a/src/version.php b/src/version.php index 3ed4f75..618464b 100644 --- a/src/version.php +++ b/src/version.php @@ -24,12 +24,12 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2023101900; // The current plugin version (Date: YYYYMMDDXX). +$plugin->version = 2023101901; // The current plugin version (Date: YYYYMMDDXX). $plugin->requires = 2022041900.00; // Moodle 4.0.0 $plugin->component = 'format_recit'; // Full name of the plugin (used for diagnostics). $plugin->maturity = MATURITY_STABLE; -$plugin->release = 'v3.1.5-stable'; -$plugin->supported = [400, 410]; // Moodle 3.9.x, 3.10.x and 3.11.x are supported. +$plugin->release = 'v3.1.6-stable'; +$plugin->supported = [400, 401]; // Moodle 3.9.x, 3.10.x and 3.11.x are supported. $plugin->dependencies = [ 'theme_recit2' => 2023011900 ]; \ No newline at end of file