gjbarnard / moodle-format_grid

Grid course format contributed by Gareth J Barnard originally created by Paul Krix
GNU General Public License v3.0
21 stars 56 forks source link

Unable to update defaultimageresizemethod setting #211

Closed djarran closed 4 months ago

djarran commented 5 months ago

Describe the bug When attempting to change the global defaultimageresizemethod in admin/settings.php?section=format_grid_settings, an error occurs (see Screenshots section).

To Reproduce Steps to reproduce the behaviour:

  1. Create a course with format grid
  2. Add section image
  3. Verify that there is a new row in mdl_format_grid_image table
  4. Change the course format to a different format (i.e. topics)
  5. Verify that the row in mdl_format_grid_image table is still there
  6. Go to admin/settings.php?section=format_grid_settings and change the defaultimageresizemethod setting
  7. See error below

Expected behaviour

Screenshots Error Message image

Versions (please complete the following information):