You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
// Remove old subscriptions that have not been activated yet
if (($objOld = \NewsletterRecipientsModel::findBy(array("email=? AND active=''"), $varInput)) !== null)
{
while ($objOld->next())
{
$objOld->delete();
}
}
Please don't not delete old subscriptions automatically. I have multiple newsletter channels corresponding to each online competitions. A person can take part in a competition only after subscribing to the corresponding NL.
To each competition, I have prepared a NL registration with pre selected channel but hidden. This registration form is then placed inside an article describing the competition.
If a person subscribe to a NL and before activation, he then subscribes to the next NL. He is deleted from the first NL channel.
The text was updated successfully, but these errors were encountered:
Would it help if we limited deletions to the current channel(s)?
Yes, this would work and I find it basically correct to restrict to the current channels.
Thank you for looking into this once again, in the mean time we are integrating this workflow in external newsletter tool (which is not yet setup). In this way, I can prepare a normal Contao form which submits to external newsletter tool.
core/system/modules/newsletter/modules/ModuleSubscribe.php
Lines 243 to 250 in 9ca7b0d
Please don't not delete old subscriptions automatically. I have multiple newsletter channels corresponding to each online competitions. A person can take part in a competition only after subscribing to the corresponding NL.
To each competition, I have prepared a NL registration with pre selected channel but hidden. This registration form is then placed inside an article describing the competition.
If a person subscribe to a NL and before activation, he then subscribes to the next NL. He is deleted from the first NL channel.
The text was updated successfully, but these errors were encountered: