From 44d346255935d13cebbe369764f76ddff01b5855 Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Sat, 11 Nov 2023 18:46:38 +0530 Subject: [PATCH] Fix 'confirmed' subscriptions becoming 'unconfirmed' on public form re-signup. Closes #1441. --- queries.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/queries.sql b/queries.sql index 5c3b54b..d6412c4 100644 --- a/queries.sql +++ b/queries.sql @@ -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