You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, the function get_extra_user_fields() and get_user_field_name in the file mod/quiz/report/answersheets/classes/report_display_options.php are deprecated.
please replace the code in line 165 $userfields = get_extra_user_fields(context_module::instance($cm->id));
with : $context = \context_system::instance();
$userfields = \core_user\fields::for_name()->with_identity($context)->excluding('id', 'deleted');
and the code in line 194 return get_user_field_name($setting); with
Hi, the function get_extra_user_fields() and get_user_field_name in the file mod/quiz/report/answersheets/classes/report_display_options.php are deprecated.
please replace the code in line 165 $userfields = get_extra_user_fields(context_module::instance($cm->id));
with : $context = \context_system::instance();
$userfields = \core_user\fields::for_name()->with_identity($context)->excluding('id', 'deleted');
and the code in line 194 return get_user_field_name($setting); with
$fields = \core_user\fields::for_name()->get_required_fields($setting);
return $fields;
Best Regards
Ghiyath
The text was updated successfully, but these errors were encountered: