Closed (fixed)
Project:
Signup
Version:
5.x-2.6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
17 Nov 2008 at 02:30 UTC
Updated:
2 Dec 2008 at 04:15 UTC
Jump to comment: Most recent file
I was just doing some testing on 5.x-2.6 and noticed an interesting issue. I enabled signups on a node and it worked as expected. I then disabled signups for that node but the signup form was still being displayed because there was still a row in the signup table for the node. There are no rows in signup_log for this signup.
I traced signup_save_node() and determined that the code at the bottom of the function that is supposed to delete the db entry is not working correctly because has_signup_record is never set in the case.
I just removed the 'if' test and delete the signup row unconditionally.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 335190_disable_signup_per_node_bug.D5-2.patch | 806 bytes | dww |
| #3 | 335190_disable_signup_per_node_bug.HEAD_.patch | 823 bytes | dww |
| signup_disable.patch | 501 bytes | bkat |
Comments
Comment #1
bkat commentedcorrect typo in title
Comment #2
dwwThanks for the report. Sorry about the bug. :( I'll take a closer look at this tomorrow, but I'm not surprised I broke this... ;)
Comment #3
dwwYeah, upon closer inspection of the code, your patch is basically the right solution now that signup_node_save() exists (see #328822: Remove global $form_values from hook_nodeapi() and otherwise clean up the logic). So, I just rerolled the patch not to leave the dead code commented out, and ported to HEAD. Tests of both of these patches welcome.
Comment #4
dwwDid some more testing myself, and committed to HEAD and DRUPAL-5--2. This will be out in 6.x-1.0-rc2 (or 6.x-1.0 if I jump straight there) and 5.x-2.7.
Comment #5
bkat commentedWorks for me obviously. Thanks!