mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
BUG: Fix checkbox group with " in option titles.
This commit is contained in:
parent
1af685952a
commit
e8aeb692fd
@ -17,7 +17,7 @@ class EditableCheckboxGroupField extends EditableMultipleOptionField {
|
||||
$optionSet = $this->Options();
|
||||
$options = array();
|
||||
|
||||
$optionMap = ($optionSet) ? $optionSet->map('Title', 'Title') : array();
|
||||
$optionMap = ($optionSet) ? $optionSet->map('EscapedTitle', 'Title') : array();
|
||||
|
||||
return new CheckboxSetField($this->Name, $this->Title, $optionMap);
|
||||
}
|
||||
|
@ -70,4 +70,8 @@ class EditableOption extends DataObject {
|
||||
$this->readonly = true;
|
||||
return $this->EditSegment();
|
||||
}
|
||||
|
||||
public function getEscapedTitle() {
|
||||
return Convert::raw2att(parent::getTitle());
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user