marinaglancy / moodle-format_flexsections

25 stars 25 forks source link

Plugin: Flexible sections format - Sections that cannot be deleted #79

Open ghost opened 10 months ago

ghost commented 10 months ago

I have Moodle 4.1.4+ Build: 20230616 Moodle theme: Almond (Ver.410.23.45) Plugin: Flexible sections format (Ver. 4.0.5)

When I try to delete a subsection, or section, even if it's empty, 90% of the time it gives me "Undefined" error and doesn't delete it. To delete them, I have to choose another course format, 'by topic', but that puts all the subsections at the level of the main sections, ruining my work. Could you please help me? Thanks!

The stacktrace doesn't say anything... image

marinaglancy commented 9 months ago

Hi David, Thanks for the report. Do you have any error messages in the javascript console? In the webserver (apache, etc) error log? Can you open the network inspector and check the request to delete section and the response from the server?

For reference, this is my screenshot of the network inspector and the request to delete a section. If I switch to the "Response" tab it says "error": false networkinspector

marinaglancy commented 8 months ago

hi @davidevigano2023 , could you please provide more details to help me reproduce this (see my message above)?