Merge pull request #34 from markguinn/fix-validation

FIX: Override DropdownField::validate for SS3.2 compatiblity
This commit is contained in:
Damian Mooyman 2015-08-20 13:38:00 +12:00
commit d54873fbaf

View File

@ -327,4 +327,17 @@ class TagField 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;
}
}