Skip to content

Commit

Permalink
Fix duplicate “delete draft” menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Oct 8, 2024
1 parent e5e8bae commit 25425d5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/elements/ContactElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ protected function crumbs(): array
protected function safeActionMenuItems(): array
{
if (!$this->id || $this->getIsUnpublishedDraft()) {
return parent::destructiveActionMenuItems();
return parent::safeActionMenuItems();
}

$items = [];
Expand Down

0 comments on commit 25425d5

Please sign in to comment.