mirror of
https://github.com/silverstripe/silverstripe-tagfield
synced 2024-07-01 00:49:19 +02:00
NEW: Add extension hooks for field-specific validation
This commit is contained in:
parent
249842fab8
commit
8b8bd13097
|
@ -379,7 +379,7 @@ class StringTagField extends DropdownField
|
||||||
*/
|
*/
|
||||||
public function validate($validator)
|
public function validate($validator)
|
||||||
{
|
{
|
||||||
return true;
|
return $this->extendValidationResult(true, $validator);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -572,7 +572,7 @@ class TagField extends MultiSelectField
|
||||||
*/
|
*/
|
||||||
public function validate($validator)
|
public function validate($validator)
|
||||||
{
|
{
|
||||||
return true;
|
return $this->extendValidationResult(true, $validator);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user