mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Landing pull request 17. Fixes Call to a member function setValue() on a non-object in ConfirmedPasswordField Fixes #????.
This commit is contained in:
parent
d5efacbf56
commit
14c60c5d9a
@ -186,7 +186,7 @@ class ConfirmedPasswordField extends FormField {
|
||||
if($value['_Password'] || (!$value['_Password'] && !$this->canBeEmpty)) {
|
||||
$this->value = $value['_Password'];
|
||||
}
|
||||
if(isset($value['_PasswordFieldVisible'])){
|
||||
if($this->showOnClick && isset($value['_PasswordFieldVisible'])){
|
||||
$this->children->fieldByName($this->Name() . '[_PasswordFieldVisible]')->setValue($value['_PasswordFieldVisible']);
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user