Syxton / moodle-block_massaction

THE OFFICIAL Mass Actions block for Moodle 3.9 and beyond
9 stars 14 forks source link

Error occurs when moving or duplicating to section when no section is selected #102

Closed TomoTsuyuki closed 10 months ago

TomoTsuyuki commented 1 year ago

We are getting below error when click on the arrow next to "Duplicate to section" without selecting any section to move/duplicate to.

"Error reading from database" image

Steps to replicate

  1. Go to a unit
  2. Turn editing on and Add Mass Action block if it's not already added.
  3. Select an activity to be moved
  4. In Mass Action Block, click on the arrow next to "Move to section" without selecting any section to move to.
  5. Above error displays.

An below error display when perform similar steps but click on the arrow next to "Duplicate to section" without selecting any section to duplicate to.

image

Syxton commented 10 months ago

@TomoTsuyuki I have confirmed the issue and the fix is correct. I will merge these changes.

Syxton commented 10 months ago

merged in both branches. Thank you for your work on this!