Electoral List - Groups. New members to groups should be added to the electoral list automatically
tiptoes - May 2, 2008 - 04:20
| Project: | Advanced Poll |
| Version: | 6.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | needs work |
Description
If you add members of group to the electoral list you would expect that new members would also be included.
It doesn;t appear so
I have to recreate the electoral list to include new members
How can I have new members of a group automatically be assigned to the electoral list?

#1
I've created a patch for 6.x-1.x-dev that replaces the way that roles are handled in electoral lists.
Rather than adding the users that currently have a given role to the electoral list, it now just adds that role itself. I changed the advpoll_electoral_list table to store role IDs in addition to user IDs. The user-based list still works, you just don't add users by role anymore.
I'm not sure about the UI because this is used a little differently than before, but this was useful for me, so I'm putting it out there.
Don't use this patch (the last line is messed up). Use the one in comment #2 below.
#2
The last line in the patch above was messed up. This patch should be correct.
Sorry!