Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
397f50e3
Commit
397f50e3
authored
Nov 24, 2015
by
John Okely
Browse files
MDL-52260 user: Fix error when saving profile with locked field
parent
b6e2489f
Changes
1
Hide whitespace changes
Inline
Side-by-side
user/edit_form.php
View file @
397f50e3
...
...
@@ -144,7 +144,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'
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment