mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
859f7add20
commit
1e61b76ca8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user