Closed (fixed)
Project:
Signup
Version:
6.x-1.0-rc6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jan 2010 at 20:58 UTC
Updated:
26 Oct 2010 at 15:10 UTC
Unfortunately the latest version of the module has an issue with how it handles the signup limits. This is do to a misnamed-variable call used twice. The _signup_check_limit() function works as expected but when creating a new signup (when the user is signing up for something) that function wasn't executing at all. I've attached a patch that fixes this issue.
| Comment | File | Size | Author |
|---|---|---|---|
| signup_limit.patch | 606 bytes | agileadam |
Comments
Comment #1
agileadamComment #2
flaviovs commentedI experienced this issue this week. Did some manual test and confirmed that signup limit was not being obeyed, at least for anonymous signups. I applied the patch above and now signup limit is working as expected.
Comment #3
joachim commentedI get three results for that string. Looks like you've missed one! ;)
Comment #4
Gremdel commentedThanks for the patch, saved me some trouble.
@joachim: That's not in my copy of SignUp, I think you may have some custom code there. Adding "$signup->count_towards_total = 1;" would fix the bug, but probably causes other bugs.
Comment #5
Gremdel commentedComment #6
Jonah Ellison commentedI applied keystr0k's patch and it resolved this issue.
I also have signup_guests installed... if anyone else is using this module, then you'll need to patch the signup_guests_signup_update() function by adding this at the end:
Comment #7
socialnicheguru commentedsub
Comment #8
echoz commentedsignup_limit.patch works for me (hand patched 6.x-1.0-rc6), thanks keystr0k!
Comment #9
echoz commentedNow I've discovered that dww's patch in #2 of #597808: Signup does not close when limit is reached which is already in the dev version fixes this, and then the patch here is not needed.
Comment #10
ezra-g commentedkeystr0k is correct that we're using the wrong variable name here -- Rather than $signup->count_towards_total, we should be using $signup->count_towards_limit , which is what is used everywhere else in the module. The patch in #597808: Signup does not close when limit is reached added in a $signup->count_towards_total = 1; , which made things work for the bit of code that was also using this incorrect variable ;). joachim is correct that we need to fix one more occurrence of this.
I made this change, tested and committed:
Thanks!
Comment #11
ezra-g commentedhttp://drupal.org/cvs?commit=434968