-
Improvement
-
Resolution: Fixed
-
Major
-
2.6
-
MOODLE_26_STABLE
-
MOODLE_26_STABLE
-
wip-
MDL-40612-master-one -
As per Marina's suggestions:
- Add a 3rd parameter to the function get_all_user_name_fields() which specifies a prefix for the retrieved sql fields.
- adding a new function that does a reverse mapping, i.e. to substitute repeating pieces of code like
$allnames = get_all_user_name_fields();
foreach ($allnames as $allname) {
$tempname = 'creator' . $allname;
if (isset($question->$tempname)) {
$u->$allname = $question->$tempname;
}
}
or the same without prefix
$allnames = get_all_user_name_fields();
foreach ($allnames as $addname) {
$userinfo[$reviewer->reviewerid]->$addname = $reviewer->$addname;
}
- blocks
-
MDL-41158 Workshop submissions showing name field debugging message.
- Closed
- Discovered while testing
-
MDL-42811 modedit.php: invalid action parameter
- Closed
- has a non-specific relationship to
-
MDL-42812 username_load_fields_from_object should add the prefix to additional fields.
- Closed
- has been marked as being related by
-
MDL-31776 Additional name fields, to allow Asian languages to flexibly display user names in Chinese characters, local phonetic system or Romanization
- Closed