Permalink
Browse files

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

argument instead of getting it from the form, which is how other
FormFields work like CompositeField
  • Loading branch information...
1 parent 859f7ad commit 1e61b76ca85771cd601a99a4e56e3b7b2db00e11 @halkyon halkyon committed Apr 12, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 forms/ConfirmedPasswordField.php
View
3 forms/ConfirmedPasswordField.php
@@ -216,8 +216,7 @@ function isSaveable() {
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

0 comments on commit 1e61b76

Please sign in to comment.