Skip to content

Commit

Permalink
Fixed field layout bug
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Dec 17, 2024
1 parent dda033d commit 98ce266
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased

- Fixed a bug where asset edit page URLs contained spaces if the asset filename contained spaces. ([#15236](https://github.com/craftcms/cms/issues/15236))
- Fixed a bug where custom fields were getting included in rendered field layout forms, even if their `getInputHtml()` method returned an empty string.

## 4.13.7 - 2024-12-17

Expand Down
2 changes: 1 addition & 1 deletion src/fieldlayoutelements/CustomField.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ protected function inputHtml(?ElementInterface $element = null, bool $static = f
$this->_field->required = $required;
$this->_field->describedBy = $describedBy;

return $html;
return $html !== '' ? $html : null;
}

/**
Expand Down

0 comments on commit 98ce266

Please sign in to comment.