Closed (fixed)
Project:
Date
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Jul 2006 at 04:01 UTC
Updated:
4 Jul 2006 at 18:13 UTC
When using the latest versions of the Date module (cvs, 2-July-2006), the Views module (cvs, 26-June-2006), and CCK (cvs, 12-June-2006) date fields do not appear in views. I've tried several view layouts. In all of them the label I specify for the date in the view appears, but there is no value for the date in any of the records.
I've contacted KarenS and she is still concentrating on getting the core date module working 100%. She indicated I should create this issue.
Time permitting, I will attempt to dig into the code of Date and Views and see where things went wrong when Views was recently changed. If I find it before KarenS gets a chance to look at it I'll post a patch.
Comments
Comment #1
tmp commentedI can confirm this. Same situation with me.
Comment #2
RayZ commentedSeems it works fine for Teaser List and Full Nodes, but not List View or Table View.
Comment #3
karens commentedOK, I can replicate this now. I'll try to figure out what's wrong...
Comment #4
karens commentedWell, I figured it out right away. It looks like the current cck implementation will pass no information from the widget back to the function that views uses to display the field, and the formatting of the date was set up in the widget. No format for the date means the date won't display.
I think this is really something that should be changed in cck, but I don't want to have this broken until or unless cck gets updated, so I'm going to re-write the module so that the date formatting is created in the field setting rather than the widget setting. You will then have to go to the field setup page for each field and re-set your format selections so they get saved in the field info. I'll also file a feature request against cck to send widget info to views since that is going to create problems for other fields, too.
Comment #5
karens commentedI just committed an update to cvs with this change. After uploading the changed module, you will need to go to admin/node/types and pull each date field up to reset the date formatting. That will make the format a field value instead of a widget value. If you don't see the option to do that you may need to clear your cache.
After that views should work. Re-open if there are any problems.
Comment #6
RayZ commentedConfirmed working.
Comment #7
westphal commentedI confirm the fix as well. Thanks for your great work, Karen.
Comment #8
westphal commented