Skip to content

Commit 9600528

Browse files
committed
Ensure defaultLabel, etc., are set before rendering the settings
1 parent ca7a05b commit 9600528

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- Fixed a bug where nested elements would get soft-deleted after running the `entrify/global-set` command on subsequent environments. ([#18767](https://github.com/craftcms/cms/issues/18767))
66
- Fixed a bug where row headings within Table fields weren’t getting statically translated in the control panel. ([#13703](https://github.com/craftcms/cms/discussions/13703))
77
- Fixed a bug where entry type chips within Matrix settings could be missing their action items.
8+
- Fixed a bug where custom field override settings’ Label, Handle, and Instructions fields could be missing their placeholder values.
89

910
## 5.9.22 - 2026-04-29
1011

src/fieldlayoutelements/CustomField.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,9 @@ protected function selectorAttributes(): array
539539
*/
540540
protected function settingsHtml(): ?string
541541
{
542+
// Make sure setField() has had a chance to set the default values
543+
$this->getField();
544+
542545
return Craft::$app->getView()->renderTemplate('_includes/forms/fld/custom-field-settings.twig', [
543546
'field' => $this,
544547
'defaultLabel' => $this->defaultLabel(),

0 commit comments

Comments
 (0)