Merge branch 'w06_MDL-26234_20_customfields' of git://github.com/skodak/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2011-02-07 22:21:21 +01:00
commit 5df4947cb8

View File

@ -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);
}
}
}