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?

CommentFileSizeAuthor
#1 advpoll-253789-2.patch12.02 KBjrb
#2 advpoll-253789-3.patch12.02 KBjrb

Comments

jrb’s picture

StatusFileSize
new12.02 KB

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.

jrb’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev
Status: Postponed (maintainer needs more info) » Needs work
StatusFileSize
new12.02 KB

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

Sorry!

tommyk’s picture

The patch in #2 seems to work perfectly and is an excellent feature! Many thanks!

roball’s picture

Title: Electoral List - Groups. New members to groups should be added to the electoral list automatically » Allow all current users of a given role to be in the electoral list
Category: bug » feature
Priority: Critical » Normal

This may be of interest in some cases, but in general I think the current way is the preferred one. Just like real political elections, the list of eligible voters is defined as of a given time and cannot be changed later. What if a user of the "synchronized" role votes and before the vote will close he will no longer be member of that role - then his voting would be removed which should never be possible.

gobinathm’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)

D6 is EOL hence this issue won't be fixed (or) attended. So closing it.