moodle-mod_scheduler icon indicating copy to clipboard operation
moodle-mod_scheduler copied to clipboard

Prevent export crash due to missing user context

Open ak4t0sh opened this issue 1 year ago • 0 comments

After user data removal by tool_dataprivacy tool_dataprivacy\task\expired_retention_period is used to remove user contexts

When exporting appointments with custom profile field selected this lead to a crash. This is due to profile field visibility check using profile_field_base::is_visible() which is calling context_user::instance() with default strictness (MUST_EXIST)...leading to an exception when the context is removed.

ak4t0sh avatar Oct 20 '23 08:10 ak4t0sh