Skip to content

Commit d6f5292

Browse files
OrtekoAndrew Keynes
and
Andrew Keynes
authored
Fix subscribers unsubscription status being reset to confirmed on save (#2517)
Co-authored-by: Andrew Keynes <andrew.keynes@voice.net.au>
1 parent 8b8358e commit d6f5292

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

queries.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ INSERT INTO subscriber_lists (subscriber_id, list_id, status)
190190
-- When subscriber is edited from the admin form, retain the status. Otherwise, a blocklisted
191191
-- subscriber when being re-enabled, their subscription statuses change.
192192
WHEN subscriber_lists.status = 'confirmed' THEN 'confirmed'
193+
WHEN subscriber_lists.status = 'unsubscribed' THEN 'unsubscribed'::subscription_status
193194
ELSE $8::subscription_status
194195
END
195196
);

0 commit comments

Comments
 (0)