mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
FIX Ensure .nolabel is only added once when Hide Title is used
This commit is contained in:
parent
704201bb34
commit
c593138569
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user