Closed (fixed)
Project:
Signup
Version:
6.x-1.x-dev
Component:
CCK Date integration
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
6 Nov 2008 at 10:37 UTC
Updated:
22 Nov 2008 at 20:11 UTC
Jump to comment: Most recent file
I've committed the initial D6 port to HEAD (#222217: Port to 6.x), but I haven't yet tested any of the CCK date field integration. Let's use this issue for any discussion, patches, etc, related to that. Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 330821_signup_cck_date_fixes.testreport.txt | 2.36 KB | stborchert |
| #4 | 330821_signup_cck_date_fixes.4.patch | 5.42 KB | dww |
Comments
Comment #1
geodaniel commentedThe start date seems to be picked up fine when substituted in for %time. Tested with a date field that has both start and end times enabled.
Comment #2
scottrigbyOnly started testing this morning, so it's not exhaustive... but one thing I noticed relates to this issue...
Signup does not seem to work with Datetime, only Date option for date field.
On content-type settings screen, under Workflow settings, the 'Date field to use with signup' select box only has the options
<Not specified>and<None>, if I have a 'Datetime' date field enabled for that content-type. If I select the 'Date' option for date field it seems to be ok.Comment #3
dww@scottrigby #2: That makes sense, in date 5.x-2.* there was no "datetime" field type, so the code isn't setup to handle that one...
Thanks for the testing.
Comment #4
dwwI was messing with this for a while earlier today, but ran out of time before I could finish testing and post the patch. This fixes a bunch of problems with the CCK date support:
A) Fixed signup_help() for what paths it tries to do the CCK date config checking on, and makes better use of the D6 hook_help API.
B) Fixed some PHP warnings in some of the cases where we're checking the CCK date config.
C) Fixed the links in the warning messages about misconfigured date fields. Tee hee, now see duellj posted a patch for this part: #331673: Broken links in signup-enabled CCK content type warning .
D) We only try to alter the node type form to add the Signup date field selector if we're editing a node type, not when we're first adding a node type (since there aren't going to be any date fields yet to choose from).
E) Fixed some bugs that were introduced with the conversion to the new (annoying) hook_mail() API, where the %time token wasn't being properly handled.
F) Added support for "datetime" fields.
I ran into a few more PHP warnings related to the signup node form, but that belongs in another issue. Any reviews + tests of this patch (and CCK date support in general)
Comment #5
stborchertHi.
As promised yesterday I've tested the patch. Attached is my detailed test report (if anyone would like to reproduce :-)).
I couldn't find any errors or misbehaviors (and no php warnings at all) but am thinking the patch should be reviewed by others, too (sure I left out some points).
First I found the broken link in the date field warning message until I noticed I forgot to apply the patch :-}
Stefan
Comment #6
dwwCommitted #4 to HEAD, and backported a few of the PHP warning fixes to DRUPAL-5--2. Thanks for testing.