Skip to content

Commit

Permalink
Fix: Ability to translate Title label (#29)
Browse files Browse the repository at this point in the history
* Fix: Ability to translate Title label

without breaking subclasses like TimelineObject that want to insert something after Title.

Fixes #28

* linting fixes
  • Loading branch information
wernerkrauss committed Feb 7, 2023
1 parent 5644ccf commit d4b6f26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Model/BaseElementObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ public function getCMSFields()
$fields->replaceField(
'Title',
TextCheckboxGroupField::create()
->setName($this->fieldLabel('Title'))
->setName('Title')
->setTitle($this->fieldLabel('Title'))
);

$fields->replaceField(
Expand Down

0 comments on commit d4b6f26

Please sign in to comment.