Closed (fixed)
Project:
CCK Signup
Version:
6.x-1.x-dev
Component:
CCK Signup core
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Mar 2011 at 12:28 UTC
Updated:
23 Mar 2011 at 12:11 UTC
Hey,
I had an event content type with a capacity field selected at first, however, at some point I decided to remove the capacity restriction, so I deselected the field from the event's content type edit interface.. Unfortunately, the cck_signup_field_capacity_event variable was not deleted from the db, so all subsequent signups were still checked against the field..
Should be easy enough to fix.
Cheers
Comments
Comment #1
jhedstromThe cck_signup_get_remaining_capacity() function now checks if signups are enabled for the given event type. Committed to 6.x and 7.x.
Comment #2
jhedstromAnd I should have mentioned, this still doesn't remove the variables, but it doesn't break if they remain set. If you want the variables removed, you can manually un-check/un-select them on the node type form.
Comment #3
arski commentedhey,
that's what I did - I deselected the capacity field for my node type, but the value was not deleted from the DB variables table :(
Comment #4
arski commentedHey again,
I'm a bit confused by this - because the function already checked if the capacity field was enabled for the content type - only when it did this it checked if a particular variable was set (which never gets unset) so I would think the issue is still there? Or are you doing it based on the variable value now?
Cheers