mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUG Fix deprecated use of dataFieldByName() in Member_Validator
This commit is contained in:
parent
62adea5882
commit
0cce58040a
@ -1609,7 +1609,7 @@ class Member_Validator extends RequiredFields {
|
||||
}
|
||||
|
||||
if($id && is_object($member) && $member->ID != $id) {
|
||||
$uniqueField = $this->form->dataFieldByName($identifierField);
|
||||
$uniqueField = $this->form->Fields()->dataFieldByName($identifierField);
|
||||
$this->validationError(
|
||||
$uniqueField->id(),
|
||||
_t(
|
||||
|
Loading…
x
Reference in New Issue
Block a user