While playing with the Generator tool, I realised it's failing in some situations when Debug display is enabled.
Steps to reproduce
- Login as admin.
- Go to Site administration > Development > Create testing scenarios
- Upload gitpod-basic-scenario_testing.feature
Expected behaviour
No error is displayed and the course is created with the expected content. If Debug display is disabled, this error is not displayed. It's also working as expected with the file is uploaded using the CLI tool.
Current behaviour
The following error is displayed:
Looking at the code, the mod_feedback generator is calling set_module_viewed when creating responses, which seems weird (no other plugin is calling this method in their generator).