Skip to content
This repository
Browse code

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
Sean Harvey authored April 12, 2012

Showing 1 changed file with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. 3  forms/ConfirmedPasswordField.php
3  forms/ConfirmedPasswordField.php
@@ -216,8 +216,7 @@ function isSaveable() {
216 216
 		return (!$this->showOnClick || ($this->showOnClick && $isVisible && $isVisible->Value()));
217 217
 	}
218 218
 	
219  
-	function validate() {
220  
-		$validator = $this->form->getValidator();
  219
+	function validate($validator) {
221 220
 		$name = $this->name;
222 221
 		
223 222
 		// if field isn't visible, don't validate

0 notes on commit 1e61b76

Please sign in to comment.
Something went wrong with that request. Please try again.