Skip to content

Commit 5360270

Browse files
committed
Fix contacts unsubscribed from oldest mailing list
Fixes #538
1 parent 4191b49 commit 5360270

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## 3.7.3 - Unreleased
44

55
- Removed the requirement for edit permission to the primary site to edit contacts ([#532](https://github.com/putyourlightson/craft-campaign/issues/532)).
6+
- Fixed a bug in which contacts were being unsubscribed from the oldest mailing list they were subscribed to, regardless of whether it was included in the sendout ([#538](https://github.com/putyourlightson/craft-campaign/issues/538)).
67

78
## 3.7.2 - 2025-11-25
89

src/services/SendoutsService.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,7 @@ private function getPendingRecipientsStandard(SendoutElement $sendout, int $limi
654654
->groupBy(['contactId'])
655655
->andWhere([
656656
'contactId' => $contactIds,
657+
'mailingListId' => $sendout->mailingListIds,
657658
'subscriptionStatus' => 'subscribed',
658659
])
659660
->orderBy(['contactId' => SORT_ASC])

0 commit comments

Comments
 (0)