Hi

I installed drupal-cvs and og-cvs as off 4pm PST Dec 4th. I create two groups and then create a user and I sign them up for only one of them. When they login the number of subscribed users to both groups has been incremented.

I tried this when creating the account as admin and when a user registers - both times users are subscribed to all (both) groups instead of only the one selected on the registration page.

Cheers,

Mark

Comments

moshe weitzman’s picture

i can confirm this behavior. whomeevr fixes this should be careful that the user can't subscribe himself to closed/moderated groups.

moshe weitzman’s picture

gerhard - i think you added this code. perhaos you can investigate.

killes@www.drop.org’s picture

Status: Active » Needs review
StatusFileSize
new893 bytes

here is a patch, can somebody test it?

moshe weitzman’s picture

gerhard - any chance you could test this a bit and commit? needs fixing on 4.6, 4.7, and HEAD. Not sure if checkboxes look different with new formapi and thus the patch will differ for 4.6

killes@www.drop.org’s picture

I don't think this needs fixing in 4.6, I cannot reproduce the problem there.

killes@www.drop.org’s picture

Status: Needs review » Needs work

I've tested it but now no mail at all gets sent. Will look into it a bit more.

killes@www.drop.org’s picture

Status: Needs work » Reviewed & tested by the community
StatusFileSize
new824 bytes

Better patch.

killes@www.drop.org’s picture

Status: Reviewed & tested by the community » Fixed

Committed, and yes, the change was due to the form API.

Anonymous’s picture

Status: Fixed » Closed (fixed)