Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.11
Description
The new PROFILE_VISIBLE_TEACHERS constant was added recently (MDL-28452). This constant is not supported in the new \core_user\fields API.
To reproduce:
- Create a 'text input' profile field with max length < 255 using the 'visible to teachers' option.
- Select this using the 'show user identity' option (Users / Permissions / User policies).
- Look at the participants page for a course
You then get PHP warnings:
Notice: Undefined variable: allowed in [my moodle path]\user\classes\fields.php on line 389