Closed (fixed)
Project:
Advanced Poll
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Oct 2007 at 16:18 UTC
Updated:
16 Dec 2007 at 08:22 UTC
Jump to comment: Most recent file
Comments
Comment #1
ChrisKennedy commentedThis is correct for max_choices and algorithms, but for start_date and end_date it will mess up the default time when the values are 0 (i.e. they aren't being used). And for the question we don't need to add the isset, because the preceding IF already ensures that it is set. Also, this made me notice that for binary polls we seem to be inserting blank algorithms rather than passing the default algorithm as a hidden field.
(sorry for taking a while to review this)
Comment #2
anders.fajerson commentedComment #3
anders.fajerson commentedThis should adress the mentioned issues. I'm not that happy with the code comment on the use of !empty instead of isset().
Comment #4
ChrisKennedy commentedWhat about:
Use !empty() because 0 signifies that the default date should be used.
Comment #5
anders.fajerson commentedBetter.
Comment #6
ChrisKennedy commentedRTBC - just be sure to fix that last comment.
Comment #7
anders.fajerson commentedChanged both places to
// Use !empty() because 0 signifies that no date should be used.in both places. Committed: http://drupal.org/cvs?commit=89970Comment #8
anders.fajerson commentedComment #9
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.