Landing pull request 17. Fixes Call to a member function setValue() on a non-object in ConfirmedPasswordField Fixes #????.

This commit is contained in:
Will Rossiter 2011-04-25 22:44:54 +12:00
parent d5efacbf56
commit 14c60c5d9a

View File

@ -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 {