Skip to content

Commit

Permalink
MDL-52260 user: Fix error when saving profile with locked field
Browse files Browse the repository at this point in the history
  • Loading branch information
John Okely committed Nov 27, 2015
1 parent c18acb8 commit 956caef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user/edit_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public function definition_after_data() {
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') {
Expand Down

0 comments on commit 956caef

Please sign in to comment.