Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The number in the newsletter listing show the amount of actual subscribers of the newsletter. But it should show the count of subscribers when the mail was sent.
Comment | File | Size | Author |
---|---|---|---|
#7 | snapshot1.png | 100.9 KB | fmjrey |
#7 | snapshot2.png | 99.82 KB | fmjrey |
#1 | simplenews_875672_1.patch | 9.03 KB | miro_dietiker |
Comments
Comment #1
miro_dietikerThe attached patch is already committed in Branch 6.2
Comment #2
miro_dietikerSome work todo ;-)
Comment #3
roball CreditAttribution: roball commentedThe Drupal database update (update.php) #6201 will fail if your tables use a prefix. Line 728 of "simplenews.install" originally reads
but must be changed to
Table names must ALWAYS be put within curly brackets!!!
Comment #4
roball CreditAttribution: roball commentedComment #5
miro_dietikerThe issue is fixed with the patch from
http://drupal.org/node/823688#comment-3304620
and it's already committed to Branch 6.2
Comment #6
miro_dietikerI needed to move things around additionally
#884338: Spool duplication on node resave
Comment #7
fmjrey CreditAttribution: fmjrey commentedI think this needs to be worked a bit further in the case of i18n newsletters.
When a newsletter has translations, each translation is listed in the newsletter issues page (admin/content/simplenews/sent).
However, the number of subscribers and the count of mail sent is only reported against the version in english (in default language I suppose).
In the attached screenshots, issue 4 has been has been translated from english to french. One subscriber is subscribed to the english version, another to the french version. Instead of seeing against both (0/1) before cron has run, I saw (0/2) against the english version. After running cron manually, (2) was reported against the english version.
Edit: my post is about 6.x-2.x-dev, not D7
Comment #8
miro_dietikerUff... i didn't consider the 1:n relationship for the translated nodes in this code...
I'm not happy with simplenews node spooler handler anyway.
Indeed when editing translations of a just pending/sending node it could lead to duplicates...
Currently the creation of the spooler recipients is also not satisfying. They get fetched from SQL into $mails and inserted back again one by one.
The creation of the recipient list should be clearly limited to a one-time action per node - where the counters are generated.
Additionally considering the creation of this in 1:n translations will make this complete.
Comment #9
roball CreditAttribution: roball commentedJust wanted to confirm that the "Sent" numbers at admin/content/simplenews/sent are now correct. Thanks for the fix!
Comment #10
Sylvain Lecoy CreditAttribution: Sylvain Lecoy commentedWe can close the ticket isn't it ?
Comment #11
miro_dietikerI don't think it's correct in multilingual sending. I plan to work on this - so please leave open.
Comment #12
roball CreditAttribution: roball commentedJust let's tag it back to the original priority.
Comment #13
miro_dietikerMinor priority is right.
The wrong counter are now by intention.
We'll delay rewriting the ML API which is needed to have correctly working counters.
We simply count the grand total reported on the translation source. All translations count 0 atm, although they've been considered when sending.
#996392: Multilanguage support