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

jrb - May 12, 2009 - 18:16
Version:5.x-1.x-dev» 6.x-1.x-dev
Status:postponed (maintainer needs more info)» needs work

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.

AttachmentSize
advpoll-253789-2.patch 12.02 KB

#2

jrb - May 12, 2009 - 18:13

The last line in the patch above was messed up. This patch should be correct.

Sorry!

AttachmentSize
advpoll-253789-3.patch 12.02 KB
 
 

Drupal is a registered trademark of Dries Buytaert.