mirror of
https://github.com/silverstripe/silverstripe-tagfield
synced 2024-10-22 11:05:32 +02:00
Merge pull request #45 from kinglozzer/patch-3
Override DropdownField::validate() in StringTagField
This commit is contained in:
commit
9eb9b35871
@ -282,4 +282,16 @@ class StringTagField extends DropdownField {
|
||||
|
||||
return $items;
|
||||
}
|
||||
|
||||
/**
|
||||
* DropdownField assumes value will be a scalar so we must
|
||||
* override validate. This only applies to Silverstripe 3.2+
|
||||
*
|
||||
* @param Validator $validator
|
||||
* @return bool
|
||||
*/
|
||||
public function validate($validator) {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user