Merge pull request #1180 from jericrealubit/EditableLiteralField-nolabel-fix-JamesDPC

This commit is contained in:
Michal Kleiner 2022-12-07 23:26:39 +13:00 committed by GitHub
commit 3b043bfb43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -161,7 +161,7 @@ class EditableLiteralField extends EditableFormField
parent::updateFormField($field); parent::updateFormField($field);
if ($this->HideLabel) { if ($this->HideLabel) {
$this->ExtraClass .= ' nolabel'; $field->addExtraClass('nolabel');
} else { } else {
$field->setTitle($this->Title); $field->setTitle($this->Title);
} }