mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Merge pull request #511 from muskie9/bugfix/#510
BUGFIX EditableFormHeading doesn't properly handle numeric values
This commit is contained in:
commit
dec9356923
@ -56,7 +56,8 @@ class EditableFormHeading extends EditableFormField {
|
||||
}
|
||||
|
||||
public function getFormField() {
|
||||
$labelField = new HeaderField($this->Name, $this->EscapedTitle, $this->Level);
|
||||
$labelField = HeaderField::create($this->EscapedTitle)
|
||||
->setHeadingLevel($this->Level);
|
||||
$labelField->addExtraClass('FormHeading');
|
||||
$labelField->setAttribute('data-id', $this->Name);
|
||||
$this->doUpdateFormField($labelField);
|
||||
|
Loading…
Reference in New Issue
Block a user