From 1e61b76ca85771cd601a99a4e56e3b7b2db00e11 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Thu, 12 Apr 2012 12:14:42 +1200 Subject: [PATCH] MINOR ConfirmedPasswordField::validate() now passes in $validator argument instead of getting it from the form, which is how other FormFields work like CompositeField --- forms/ConfirmedPasswordField.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/forms/ConfirmedPasswordField.php b/forms/ConfirmedPasswordField.php index 2ee1b49df..d0cd40229 100644 --- a/forms/ConfirmedPasswordField.php +++ b/forms/ConfirmedPasswordField.php @@ -216,8 +216,7 @@ class ConfirmedPasswordField extends FormField { return (!$this->showOnClick || ($this->showOnClick && $isVisible && $isVisible->Value())); } - function validate() { - $validator = $this->form->getValidator(); + function validate($validator) { $name = $this->name; // if field isn't visible, don't validate