From b39ca06833e37d5768219d54786894c387424773 Mon Sep 17 00:00:00 2001 From: Loz Calver Date: Wed, 23 Sep 2015 09:56:18 +0100 Subject: [PATCH] Override DropdownField::validate() in StringTagField --- code/StringTagField.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/code/StringTagField.php b/code/StringTagField.php index 3abceaf..2de1273 100644 --- a/code/StringTagField.php +++ b/code/StringTagField.php @@ -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; + } + }