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:
Create a course with format grid
Add section image
Verify that there is a new row in mdl_format_grid_image table
Change the course format to a different format (i.e. topics)
Verify that the row in mdl_format_grid_image table is still there
Go to admin/settings.php?section=format_grid_settings and change the defaultimageresizemethod setting
See error below
Expected behaviour
Expecting the 'Changes saved' success notification.
Clean up of course references in format-grid-related tables when format changed (or checking format of courses prior to calling functions)
ScreenshotsError Message
Versions (please complete the following information):
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:
grid
mdl_format_grid_image
tabletopics
)mdl_format_grid_image
table is still thereadmin/settings.php?section=format_grid_settings
and change thedefaultimageresizemethod
settingExpected behaviour
format-grid
-related tables when format changed (or checking format of courses prior to calling functions)Screenshots Error Message
Versions (please complete the following information):