From b798276fa7068c43214db24cea50983d4ec9b9d7 Mon Sep 17 00:00:00 2001 From: brandonkelly Date: Fri, 22 Dec 2023 06:21:37 -0800 Subject: [PATCH] Fixed #14050 --- CHANGELOG.md | 4 ++++ src/elements/Entry.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 45fc8f634d8..82de1759159 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Release Notes for Craft CMS 5 +## Unreleased + +- Fixed a bug where section preview targets weren’t being respected in Craft Pro. ([#14050](https://github.com/craftcms/cms/issues/14050)) + ## 5.0.0-alpha.3 - 2023-12-21 - Added the `tempAssetUploadFs` config setting. ([#13957](https://github.com/craftcms/cms/pull/13957)) diff --git a/src/elements/Entry.php b/src/elements/Entry.php index 8c7420f6fda..db9d89940dd 100644 --- a/src/elements/Entry.php +++ b/src/elements/Entry.php @@ -1135,7 +1135,7 @@ public function getCardBodyHtml(): ?string */ protected function previewTargets(): array { - if ($this->fieldId || Craft::$app->getEdition() === Craft::Pro) { + if ($this->fieldId || Craft::$app->getEdition() === Craft::Solo) { return parent::previewTargets(); }