diff --git a/code/Model/EditableFormField/EditableLiteralField.php b/code/Model/EditableFormField/EditableLiteralField.php index 4f0ff49..7b00667 100644 --- a/code/Model/EditableFormField/EditableLiteralField.php +++ b/code/Model/EditableFormField/EditableLiteralField.php @@ -161,7 +161,7 @@ class EditableLiteralField extends EditableFormField parent::updateFormField($field); if ($this->HideLabel) { - $this->ExtraClass .= ' nolabel'; + $field->addExtraClass('nolabel'); } else { $field->setTitle($this->Title); }