-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
2.0.1, 2.0.2
-
MySQL
-
MOODLE_20_STABLE
If using the upload users function you cannot upload the file if you have created any custom profile fields.
The bug is caused by the fact that the code for checking Profile fields adds the following to the front of the field:
'profile_field_'
The following patch fixes the issue:
--- uploaduser.php.1.129 Thu Feb 17 14:30:18 2011
|
+++ uploaduser.php.my Thu Feb 17 14:52:04 2011
|
@@ -84,7 +84,7 @@
|
|
if ($prof_fields = $DB->get_records('user_info_field')) {
|
foreach ($prof_fields as $prof_field) {
|
- $PRF_FIELDS[] = 'profile_field_'.$prof_field->shortname;
|
+ $PRF_FIELDS[] = $prof_field->shortname;
|
|
}
|
unset($prof_fields);
|
}
|
- has a non-specific relationship to
-
MDL-26234 text area custom fields break upload users
- Closed