From 750e81b7cf745c84ee795486fd93635ce27309f4 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 21 Feb 2015 16:15:03 +1300 Subject: [PATCH] Remove GroupedDropdownField::validate() (regression) Regression caused by 41ea83b3374d026da9575f5256a02bdcfbb82059, which introduced field validation in the parent class without also adapting this subclass. Fixing the immediate issue (can't save this field type), as a first step to the actual fix (implementing validate). See https://github.com/silverstripe/silverstripe-translatable/issues/179 --- forms/GroupedDropdownField.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/forms/GroupedDropdownField.php b/forms/GroupedDropdownField.php index 352fac4f5..0ba6f03e8 100644 --- a/forms/GroupedDropdownField.php +++ b/forms/GroupedDropdownField.php @@ -88,5 +88,12 @@ class GroupedDropdownField extends DropdownField { return 'groupeddropdown dropdown'; } + /** + * @todo Implement DropdownField::validate() with group validation support + */ + public function validate(Validator $validator) { + return true; + } + }