<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Moodle Plugins directory: Letstudy Course Formats: Comments</title>
    <link>https://moodle.org</link>
    <description>A modern course format with 10 visual layouts: Cards, Tabs, List, Timeline, Learning Path, Kanban, Metro Tiles, Map Journey, 3D Bookshelf, and Polaroid Wall. Features customisable colours, section icons, progress tracking, and entrance animations.</description>
    <generator>Moodle</generator>
    <language>en</language>
    <copyright>(c) 2026 Moodle - Open-source learning platform | Moodle.org</copyright>
    <image>
      <url>https://moodle.org/theme/image.php/moodleorg/core/1777401252/i/rsssitelogo</url>
      <title>moodle</title>
      <link>https://moodle.org</link>
      <width>140</width>
      <height>35</height>
    </image>
    <item>
      <title>Wednesday, 25 March 2026, 1:20 AM - Danilo Costa Machado</title>
      <link>https://moodle.org/plugins/format_letstudy#comment-89911</link>
      <pubDate>Tue, 24 Mar 2026 17:20:36 GMT</pubDate>
      <description>by Danilo Costa Machado. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;I identified an issue when using this course format plugin on Moodle version 5.0.1. During course editing, a failure occurs in the page editing functionalities (dropdown), resulting in JavaScript errors.&lt;br&gt;
&lt;br&gt;
After analyzing the problem, I found that it is related to the component.init call in the templates/local/content module. In Moodle 5.0.1, the third parameter (sectionreturn) may not be defined, causing an empty value to be passed to the function. This leads to execution errors and breaks the course editing interface.&lt;br&gt;
&lt;br&gt;
It is important to note that this behavior does not occur in more recent Moodle versions (tested from 5.0.6+), where this parameter is already properly handled.&lt;br&gt;
&lt;br&gt;
Original code:&lt;br&gt;
{{#isediting}}&lt;br&gt;
{{#js}}&lt;br&gt;
require(['core_courseformat/local/content'], function(component) {&lt;br&gt;
    component.init('#page', {}, {{sectionreturn}}, {{#pagesectionid}}{{.}}{{/pagesectionid}}{{^pagesectionid}}null{{/pagesectionid}});&lt;br&gt;
});&lt;br&gt;
{{/js}}&lt;br&gt;
{{/isediting}}&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Applied fix:&lt;br&gt;
I implemented a check to ensure that if sectionreturn is not defined, null is explicitly passed, preventing the JavaScript from breaking:&lt;br&gt;
{{#isediting}}&lt;br&gt;
{{#js}}&lt;br&gt;
require(['core_courseformat/local/content'], function(component) {&lt;br&gt;
    component.init(&lt;br&gt;
        '#page',&lt;br&gt;
        {},&lt;br&gt;
        {{#sectionreturn}}{{.}}{{/sectionreturn}}{{^sectionreturn}}null,{{/sectionreturn}}&lt;br&gt;
        {{#pagesectionid}}{{.}}{{/pagesectionid}}{{^pagesectionid}}null{{/pagesectionid}});&lt;br&gt;
});&lt;br&gt;
{{/js}}&lt;br&gt;
{{/isediting}}&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
With this adjustment, the issue was resolved in the affected environment, restoring normal course editing functionality.&lt;br&gt;
&lt;br&gt;
I suggest considering adding this validation to the plugin to ensure compatibility with older Moodle versions, especially 5.0.1.&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/format_letstudy#comment-89911</guid>
    </item>
    <item>
      <title>Sunday, 22 February 2026, 6:30 AM - Plugins bot</title>
      <link>https://moodle.org/plugins/format_letstudy#comment-89613</link>
      <pubDate>Sat, 21 Feb 2026 22:30:05 GMT</pubDate>
      <description>by Plugins bot. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Approval issue created: &lt;a title=&quot;Auto-link to Moodle Tracker&quot; href=&quot;https://moodle.atlassian.net/browse/CONTRIB-10340&quot; target=&quot;_blank&quot; rel=&quot;noreferrer&quot;&gt;CONTRIB-10340&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/format_letstudy#comment-89613</guid>
    </item>
  </channel>
</rss>