Hi,
I see how quickly the issue queue is moving here and how busy the maintainers must be, so apologies if this is an obvious issue...
I have worked through the debugging information instructions and searched for similar issues.
- PHP Version 5.3.5 running on IIS
- Date 7.x-2.x-dev
- Calendar 7.x-2.x-dev
- Views 7.x-3.x-dev
- CTools 7.x-1.x-dev
I have a custom content type with a Date field. The Date field has a From and a To date. If I Set the From date to, say the 5th of April and the To date to the 20th of April, I see the event going nicely from the 5th to the 20th in the Month view, as expected.
However, if I set the From date to the 20th of April and the To date to the 5th of May, in the Month view I see the event from the 20th of April to the end of the month (april.png), as expected, but May is empty (may.png).
Looking at the SQL query Views is generating, this is not suprising. The query finishes up with:
(DATE_FORMAT(STR_TO_DATE(field_data_field_start_date.field_start_date_value, '%Y-%m-%dT%T'), '%Y-%m') = '2011-05')
So it's only looking at events with a start date equal to the month we're looking at. I need events that will span 6 months or so, so this is a significant problem for me.
Have I overlooked something, or is Calendar not designed for this?
Many thanks
Comments
Comment #1
akanik commentedsubscribe.
Comment #2
xenyo commentedSimilar issue to http://drupal.org/node/1147620 ?
Comment #3
Initsogar commentedSame here. I was trying to fix it, but after I add both of date fields (from & to) in contextual filters, it shows all events properly, but duplicated.
Comment #4
tnightingale commentedSubscribing
Comment #5
sonnenmann commentedSubscribing
Comment #6
marcusx commented+1 same problem here
Comment #7
kylebcooke commentedSubscribe
Comment #8
marcusx commentedCreated a patch for this issue.
Maybe someone can replace $this->real_field . '2' (see comment below) with the proper function to get the value 2 field name as a further improvement. I couldn't find where to get this and had to put the "2" there pretty manually. Not nice, but its working.
Apply against the latest 7.x-2.x-dev version from today.
Comment #9
karlsheaI can confirm #8 fixed the issue for me.
I'd mark RTBC but someone might want to look at that '2' concatenation thing.
Comment #10
marcusx commentedBy the way, this is a date issue. I just realized that I was only looking at the issue and not at the project it was initally reported.
My patch at #8 is against the latest date modul dev version.
Changing the project.
Comment #11
karens commentedCollecting all these duplicate reports into a single issue, #1147620: Multi-day events don't show up on day view of spanned days..