Using the date module version 5.x-1.2 with a "from" and "to" date which spans 10 days. On the monthly and weekly calendar, the first day displays properly. However the second day has the field name listed twice. The third day, three times. Fourth day 4 times. Etc. So the fourth day reads like this, "Here is the great title to the node (date field name:) (date field name:) (date field name:) (date field name:) All Day"
The day view is also strange. It lists the single node twice for each day (except the last day). It lists it once for the day you are viewing and then once for the following day. The second listing for the following day has the field name listed twice. Like this:
Day being viewed: Tuesday, February 6 2007
02 / 6
Here is the great title to the node (date field name:)
Start: 02/01/2007 - 1:00am
End: 02/10/2007 - 10:00am
02 / 7
Here is the great title to the node (date field name:) (date field name:)
Start: 02/01/2007 - 1:00am
End: 02/10/2007 - 10:00am
Comments
Comment #1
KarenS CreditAttribution: KarenS commentedThis is very odd. Can you export your view and paste it here. Thanks!
Comment #2
bradwade CreditAttribution: bradwade commentedHi Karen - Here is the export.
Thanks for looking into this,
Brad
Comment #3
KarenS CreditAttribution: KarenS commentedThanks. I need one more thing. Tell me what node_data_field_event_date looks like? If you're using 5.x you can install the content_copy module and export the content type that field is in and paste it here so I can see the details.
Comment #4
bradwade CreditAttribution: bradwade commentedUnfortunately I made some changes so the system wouldn't use any features that seemed to be causing the problems (no from and to dates for example). Here is the export how things are now. I will also try to change the settings back, recreate the problem and paste those settings. For now:
Comment #5
bradwade CreditAttribution: bradwade commentedHere is the export with the settings that cause the problem. I changed the settings back, reentered a calendar item that spans multiple days and observed the same behavior.
Comment #6
ashtonium CreditAttribution: ashtonium commentedconfirming this bug in both of the v1.2 releases (4.7.x & 5.x)
Also, when other fields are added to the view, the field values are replicated in the same manner as the date field labels. So if I add on the "Node: Author Name" and "Node: ID" fields I get the following on the event's third day in the "month" view:
It appears to replicate based on the number of times the same item is displayed in the view. For instance, looking at the same day in the "day" view I get:
Comment #7
KarenS CreditAttribution: KarenS commentedOK, I can replicate this now. Working on a fix...
Comment #8
KarenS CreditAttribution: KarenS commentedFound the problem and committed fix to all branches.
Comment #9
Tomette CreditAttribution: Tomette commentedSeems not to be fixed!
Using Calendar HEAD (or also 5.x-1.x-dev) from today (20 feb 07), Date 5.x-1.x-dev with CCK 1.3, and view 1.5, with the following type and view...
And the view (field_date_et_heure belongs to another type of content):
There is also a problem of displaying such a type in week view (does not appear if week is set to start on monday), but this is a another issue...
Comment #10
(not verified) CreditAttribution: commentedComment #11
jimdunntx CreditAttribution: jimdunntx commentedI am having the same problem. with a slight difference. I am using the javascript pop-up for selection of a from and to date, with the to date optional.
On my day view, the first day of the event does not show up. On the last day of the event, it shows up properly in the day view, but each of the days in between has the event listed twice (but no more than twice), for the prior and current day). In the month and week views, the events seem to show up ok, except I have noticed that when I switch between the the month and week view several times, all the events disappear.
Comment #12
jimdunntx CreditAttribution: jimdunntx commentedI am having a similar problem. Using the Javacode module to pick a from and to date, with the to date optional, any event that I enter for one day does not show up at all on that day. If I enter a multiple-day event, it does not show up at all on the first day, it does show up properly on the last day, but the days in between have multiple copies of the event listed in day view (but only two each so far, with the current and next day's date).
Though at first everything shows up fine on the month and week views, if I switch back and forth between these two views several times, everything disappears.
Comment #13
ashtonium CreditAttribution: ashtonium commentedjimdunntx: please be careful in setting the project and issue information. This is a code issue not a documentation issue, and you also seem to have inadvertently assigned the project to yourself.
The issue does not appear to be fully resolved in 5.x-1.4 (also using the 5.x-1.4 release of the date module and no jscalendar) - the day view is still showing both the current day and the following day for the event, but the rest of it appears to be functioning properly for me as well.
To fix the issue for now, you can download the latest development snapshots for both the calendar module and the date module. You may also need to upgrade to the latest official releases of cck and views if you haven't already.
Also, be aware that the week view has been hidden in the development version of calendar as there are apparently some other issues with it.
Comment #14
ashtonium CreditAttribution: ashtonium commentedargh, scratch that, I just noticed a posting on the forums from someone else experiencing this issue (http://drupal.org/node/137704) that reminded me to test out additional fields. I'm testing this using the latest development snapshots of both calendar and date modules.
The bug as originally reported appears to be fixed (event date field labels no longer display multiple times), however, the additional fields are still being replicated for the number of times the item has been displayed in the view. For example, If I add on the "Node: Author Name" and "Node: ID" fields I get the following on the event's third day in the "month" view:
Comment #15
mfredrickson CreditAttribution: mfredrickson commentedThe problem is in calendar.theme,. the theme_calendar_calendar_node function().
Basically, a node get's passed in to the function once for each time it is displayed on the calendar. In the case of multi-day events, it gets passed in multiple times. In PHP5, objects are passed by reference, whether you like it or not. Usually that's not a problem. In this case, it is.
The $node->teaser gets appended to in each successive call to this function, therefore the teaser grows and grows. The solution is to reset the title and teaser to an empty string each time.
Here's a fixed version of the function. I'm lazy and I'm not going to bother rolling a patch. But you get the idea.
Cheers,
-M
Comment #16
KarenS CreditAttribution: KarenS commentedI'm committing something that I hope will work. Thanks to mark fredrickson for the key to the solution, but it needs a different solution than he proposes because unsetting the title and teaser creates other problems (for instance in ical feeds).
So instead I'm going to change the theme function to this:
The idea is to keep from reconstructing the title and teaser after the first time through. This needs testing to be sure it works in all cases, but I think it will.
Reopen if it does not fix the problem.
Comment #17
(not verified) CreditAttribution: commented