Additional profile fields in grader_report???

Additional profile fields in grader_report???

by Jason Maddern -
Number of replies: 1

Hi Guys, 

I'm using moodle 3.0.2 and trying my hardest to use default moodle and not hack it.

I have some additional user profile fields synced into moodle via https://docs.moodle.org/30/en/User_profile_fields, which writes these to the mdl_user_info_field table.

I'm trying to get some additional user fields shown in the grader_report (and other areas). I know you can use $CFG->showuseridentity = 'username,email'; for this, but only appears to support fields from mdl_user, not additional profile fields pulled from mdl_user_info_field. 

Is there any way to get the "showuseridentify" values to include these additional profile fields.

Thanks, jason.

Average of ratings: -
In reply to Jason Maddern

Re: Additional profile fields in grader_report???

by Jason Maddern -

Added this to the tracker: https://tracker.moodle.org/browse/MDL-56611

Interestingly - the only way you can achieve this is to either:

a) Edit moodle core (as per the tracker item), or

b) Utilise a non-utilised mdl_user field (like department, etc.) then change the language string to suit. Of course, while this will display for users ok, it does mean you are storing data about X in a table attribute called Y (which isn't great).

It would be much better if moodle core supported additional profile fields in the showuseridentity value - so that we can add additional profile fields that are fit for purpose.

Thanks Jason