Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 1e61b76ca85771cd601a99a4e56e3b7b2db00e11 1 parent 859f7ad
@halkyon halkyon authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.