mirror of
https://github.com/silverstripe/silverstripe-tagfield
synced 2024-10-22 09:05:32 +00:00
Merge pull request #234 from kinglozzer/formfield-validation-extensions
NEW: Add extension hooks for field-specific validation
This commit is contained in:
commit
dd7481a2bc
@ -379,7 +379,7 @@ class StringTagField extends DropdownField
|
||||
*/
|
||||
public function validate($validator)
|
||||
{
|
||||
return true;
|
||||
return $this->extendValidationResult(true, $validator);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -572,7 +572,7 @@ class TagField extends MultiSelectField
|
||||
*/
|
||||
public function validate($validator)
|
||||
{
|
||||
return true;
|
||||
return $this->extendValidationResult(true, $validator);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user