Closed (fixed)
Project:
Simplenews Roles
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Nov 2009 at 16:15 UTC
Updated:
20 Nov 2009 at 13:20 UTC
Hi joachim,
As discussed, I discovered a small bug in the simplenews_roles_update_subscriptions() function, where the way the database query result is being processed means that only one row can ever be retrieved per call of the function. The effect being that only one subscription will be updated every cron run.
I've attached a patch which seems to solve the problem,
Cheers,
Peter
| Comment | File | Size | Author |
|---|---|---|---|
| simplenews_roles-update.patch | 1.18 KB | petebarnett |
Comments
Comment #1
petebarnett commentedComment #2
joachim commentedThanks for spotting this one, and thank you for the patch!
Total fail on my part, I always misread db_result() as giving me the whole result set as an array.
As I said when we met, any other bugs you find or improvements you want to suggest for this module, please file issues :)
Committed to CVS:
#622104 by peterbarnett: Fixed bug with subs updating queries only taking first result.