From 25425d56d83740b1b5bff344e5f1e7875f03ed4c Mon Sep 17 00:00:00 2001 From: bencroker Date: Tue, 8 Oct 2024 19:50:08 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20duplicate=20=E2=80=9Cdelete=20draft?= =?UTF-8?q?=E2=80=9D=20menu=20item?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 6 ++++++ composer.json | 2 +- src/elements/ContactElement.php | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f56abca..465f0d8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Release Notes for Campaign +## 3.5.5 - 2024-10-08 + +### Fixed + +- Fixed a bug in which the “delete draft” menu item could appear twice when editing a draft contact. + ## 3.5.4 - 2024-10-08 ### Fixed diff --git a/composer.json b/composer.json index c1e8f5b0..f1823b4a 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "putyourlightson/craft-campaign", "description": "Send and manage email campaigns, contacts and mailing lists.", - "version": "3.5.4", + "version": "3.5.5", "type": "craft-plugin", "homepage": "https://putyourlightson.com/plugins/campaign", "license": "proprietary", diff --git a/src/elements/ContactElement.php b/src/elements/ContactElement.php index 5ac6ae01..66051883 100755 --- a/src/elements/ContactElement.php +++ b/src/elements/ContactElement.php @@ -566,7 +566,7 @@ protected function crumbs(): array protected function safeActionMenuItems(): array { if (!$this->id || $this->getIsUnpublishedDraft()) { - return parent::destructiveActionMenuItems(); + return parent::safeActionMenuItems(); } $items = [];