Skip to content

Moodle 501 stable issue63 - #64

Merged
niko-hoogeveen merged 3 commits into
MOODLE_501_STABLEfrom
MOODLE_501_STABLE_issue63
Jun 30, 2026
Merged

niko-hoogeveen merged 3 commits into
MOODLE_501_STABLEfrom
MOODLE_501_STABLE_issue63

Conversation

@guillogo

Copy link
Copy Markdown
Contributor

Closes #63

The upstream fix (cherry-picked from the 4.0.4 branch, commit e6ea52e)
added the required HTML attributes to the section element but did not
include the JS initialisation call.

On Moodle 5.1, the reactive course editor JS must be explicitly started
on single section pages. The core template that normally does this is
never rendered by the twocol format on that view, so drag and drop was
completely broken on ?section=N pages.

Export sectionreturn and pagesectionid from export_for_template() and
call component.init() in the single section page template block,
matching the same pattern used by the core courseformat content template.

@guillogo
guillogo force-pushed the MOODLE_501_STABLE_issue63 branch 2 times, most recently from 188703b to 3936c66 Compare June 30, 2026 17:44
Peterburnett and others added 3 commits June 30, 2026 13:48
…odle 5.1

The upstream fix (cherry-picked from the 4.0.4 branch) added the required
HTML attributes to the section element. However, on Moodle 5.1 the reactive
course editor JS also needs to be explicitly initialised on single section
pages, since the core template that normally does this is never rendered by
the twocol format on that view.

Export sectionreturn and pagesectionid from export_for_template() and call
component.init() in the single section page template block.

Closes #63
@guillogo
guillogo force-pushed the MOODLE_501_STABLE_issue63 branch from 3936c66 to 8d28c15 Compare June 30, 2026 17:51
@niko-hoogeveen

Copy link
Copy Markdown

Hi @guillogo,

Thank you for your work on this issue. Testing passed on Moodle 5.1 environment.

@niko-hoogeveen
niko-hoogeveen merged commit 880774c into MOODLE_501_STABLE Jun 30, 2026
30 of 31 checks passed
@guillogo
guillogo deleted the MOODLE_501_STABLE_issue63 branch June 30, 2026 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants