mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00: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()));
|
return (!$this->showOnClick || ($this->showOnClick && $isVisible && $isVisible->Value()));
|
||||||
}
|
}
|
||||||
|
|
||||||
function validate() {
|
function validate($validator) {
|
||||||
$validator = $this->form->getValidator();
|
|
||||||
$name = $this->name;
|
$name = $this->name;
|
||||||
|
|
||||||
// if field isn't visible, don't validate
|
// if field isn't visible, don't validate
|
||||||
|
Loading…
x
Reference in New Issue
Block a user