at-tools / moodle-block_massaction

The Mass Action block for Moodle 2
6 stars 12 forks source link

Stops working after deleting a module #25

Open mglumac opened 6 years ago

mglumac commented 6 years ago

Tested with Moodle 3.5, version# 2018051701

Steps to reproduce:

  1. make sure Recycle Bin is enabled
  2. in a course with massaction block enable editing, and delete any module
  3. reload the page
  4. there are no checkboxes after where deleted module was located, and massaction drop down lists are not working The following javascript error appears: first.js:39087 Uncaught TypeError: Cannot read property 'appendChild' of undefined at Object.drawCheckboxes (first.js:39087) at Object.init (first.js:39036) at view.php?id=1023:50433 at Object.execCb (require.min.js:5) at b.check (require.min.js:5) at b.enable (require.min.js:5) at b.init (require.min.js:5) at require.min.js:5

Once cron is run, and deleted module is moved to a recycle bin, everything seems to be working correctly again. The problem seems to exists between deleting a module and running a cron

5882wolverine commented 5 years ago

Hello,

We have recently come across this issue on 3.4. Is there any timeline for a potential fix on this?

Thanks,

M

jprovasnik commented 4 years ago

I am confirming that this 'occasionally' happens in Moodle 3.7 when both deleting "Module" or deleting a "Section"

Sometimes, adding a new section, moving it somewhere, and then deleting that section resolves the issue.

Other times, it stops working once it hits a Topic that is entirely blank, or a topic that starts with a label resource. Not sure if that's related, or a separate issue. again, it's hit and miss. Refreshing like 3 - 7 times seems to help correct.