mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'w06_MDL-26234_20_customfields' of git://github.com/skodak/moodle
This commit is contained in:
commit
5df4947cb8
@ -295,7 +295,13 @@ if ($formdata = $mform->is_cancelled()) {
|
||||
}
|
||||
if (isset($formdata->$field)) {
|
||||
// process templates
|
||||
$user->$field = process_template($formdata->$field, $user);
|
||||
if (is_array($formdata->$field)) {
|
||||
foreach ($formdata->$field as $k=>$v) {
|
||||
$user->$field[$k] = process_template($v, $user);
|
||||
}
|
||||
} else {
|
||||
$user->$field = process_template($formdata->$field, $user);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user