Skip to content

Commit

Permalink
Fix 'confirmed' subscriptions becoming 'unconfirmed' on public form r…
Browse files Browse the repository at this point in the history
…e-signup. Closes #1441.
  • Loading branch information
knadh committed Nov 11, 2023
1 parent 62be5e2 commit 44d3462
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions queries.sql
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ INSERT INTO subscriber_lists (subscriber_id, list_id, status)
WHEN $4='blocklisted' THEN 'unsubscribed'::subscription_status
-- When subscriber is edited from the admin form, retain the status. Otherwise, a blocklisted
-- subscriber when being re-enabled, their subscription statuses change.
WHEN subscriber_lists.status = 'confirmed' THEN 'confirmed'
WHEN $9 = TRUE THEN subscriber_lists.status
ELSE $8::subscription_status
END
Expand Down

0 comments on commit 44d3462

Please sign in to comment.