MINOR ConfirmedPasswordField::validate() now passes in $validator

argument instead of getting it from the form, which is how other
FormFields work like CompositeField
This commit is contained in:
Sean Harvey 2012-04-12 12:14:42 +12:00
parent 859f7add20
commit 1e61b76ca8

View File

@ -216,8 +216,7 @@ class ConfirmedPasswordField extends FormField {
return (!$this->showOnClick || ($this->showOnClick && $isVisible && $isVisible->Value())); return (!$this->showOnClick || ($this->showOnClick && $isVisible && $isVisible->Value()));
} }
function validate() { function validate($validator) {
$validator = $this->form->getValidator();
$name = $this->name; $name = $this->name;
// if field isn't visible, don't validate // if field isn't visible, don't validate