Merge pull request #4914 from torleif/patch-2

FIX OptionsetField returns valid HTML #4901
This commit is contained in:
Damian Mooyman 2016-01-13 13:06:51 +13:00
commit 12612b4200

View File

@ -102,4 +102,13 @@ class OptionsetField extends DropdownField {
public function ExtraOptions() { public function ExtraOptions() {
return new ArrayList(); return new ArrayList();
} }
public function getAttributes() {
$attributes = parent::getAttributes();
unset($attributes['name']);
unset($attributes['required']);
unset($attributes['role']);
return $attributes;
}
} }