mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
bfbb314e2f
Management fix: Although rooms and room users are implemented as separate provider interfaces, there were still assumptions that adding/removing rooms would require user handling. Where room_provider was implemented but room_user_provider was not, that would then result in either unnecessary ad-hoc tasks, or tasks failing with errors. Now, checks are in place to avoid these scenarios. API fix: Previously save_form_data() was being called on the old provider instead of the newly enabled one, so when switching between providers the settings would not be correctly applied and the provider may not function. Now, the object is reloaded and the data is saved correctly.