BUGFIX ConfirmedPasswordField::setValue has error (fixes #6387)

http://open.silverstripe.org/ticket/6387
This commit is contained in:
nicolaas 2011-03-18 22:10:34 +00:00 committed by Ingo Schommer
parent d82a47b12f
commit 6a268a8b37

View File

@ -190,7 +190,7 @@ class ConfirmedPasswordField extends FormField {
$this->children->fieldByName($this->Name() . '[_PasswordFieldVisible]')->setValue($value['_PasswordFieldVisible']);
}
} else {
if($value || (!$value && !$this->canBeEmpty)) {
if($value || (!$value && $this->canBeEmpty)) {
$this->value = $value;
}
}