Merge branch 'MDL-52260-master-2' of git://github.com/xow/moodle

This commit is contained in:
David Monllao
2015-12-03 11:16:33 +01:00
committed by Eloy Lafuente (stronk7)
+1 -1
View File
@@ -137,7 +137,7 @@ class user_edit_form extends moodleform {
if (!$mform->elementExists($formfield)) {
continue;
}
$value = $mform->getElementValue($formfield);
$value = $mform->getElement($formfield)->exportValue($mform->getElementValue($formfield)) ?: '';
$configvariable = 'field_lock_' . $field;
if (isset($authplugin->config->{$configvariable})) {
if ($authplugin->config->{$configvariable} === 'locked') {