mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #4914 from torleif/patch-2
FIX OptionsetField returns valid HTML #4901
This commit is contained in:
commit
12612b4200
@ -102,4 +102,13 @@ class OptionsetField extends DropdownField {
|
||||
public function ExtraOptions() {
|
||||
return new ArrayList();
|
||||
}
|
||||
|
||||
public function getAttributes() {
|
||||
$attributes = parent::getAttributes();
|
||||
unset($attributes['name']);
|
||||
unset($attributes['required']);
|
||||
unset($attributes['role']);
|
||||
|
||||
return $attributes;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user