Closed olivabigyo closed 1 year ago
@olivabigyo Thanks for this, I'll see of I can replicate as soon as I can. Given my comments on #131 - then why does the Topics format not suffer from the same issue?
I have replied in the PR. Crucially, your code has an additional part that's different from the Topics format (to update the section numbers), which is where the bug is triggered.
The core Moodle might or might not have a similar issue (which is harder to trigger), this requires more investigation. Definitely the documentation of the getElement
method is incorrect.
@olivabigyo Thanks, saw that just after I posted my reply and have replied there.
@olivabigyo Also, would you like a credit in the Changes.md file?
Thank you for the quick handling! Credit: why not, thanks :)
@olivabigyo No problem. Credit added and patch forward ported to master, currently for M4.1.
Describe the bug Deleting sections is broken in layouts without section numbers.
To Reproduce Steps to reproduce the behaviour:
Expected behaviour The section disappears after deletion.
Screenshots If applicable, add screenshots to help explain your problem.
Version (please complete the following information)
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.