mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-52260 user: Fix error when saving profile with locked field
This commit is contained in:
parent
c18acb8997
commit
956caef6ad
1 changed files with 1 additions and 1 deletions
|
@ -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') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue