Closed (fixed)
Project:
Date
Version:
7.x-2.x-dev
Component:
Views Argument
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 May 2011 at 04:59 UTC
Updated:
12 Jun 2012 at 09:09 UTC
They only show up on the first day in 'day' view.
Comments
Comment #1
mcaden commentedComment #2
poliakustyczny commentedSame problem here, except I see it in first and last day in "day view"
Comment #3
NotNotCow commentedSame here, Subscribe
Comment #4
NotNotCow commentedHi there,
Do any of you have an answer to this as yet?
This is still on my 'to do' list, and I'm not sure if it's a bug, or my inexperience with Views, but the problem I'm having is shown here:
I can quite clearly see the start and end dates, and the 'Event' is spanned, but clicking on the day view between the start and end dates, shows no results.
I've tried changing the granularity etc. but with no luck. Am I still missing something?
Cheers NNC
Comment #5
kwongkkt commentedsubscribe
Comment #6
kwongkkt commentedin day view,
i found it appears on start day, not on end day and the days between
Subscribe
Comment #7
mikus commentedSame here, and e.g. if event is scheduled from May 25th, 8 am to May 26th, 4 pm it appears only on May 25th from 8 am to 4 pm (!)
Comment #8
xenyo commentedSubscribe
Comment #9
NotNotCow commentedStill subscribed:)
Comment #10
tnightingale commentedSubscribing
Comment #11
grossmann commentedsame here and subscribing
Comment #12
gapa commentedsub
Comment #13
r13ose commentedI am getting the same problem. I haven't been able to locate anywhere in the code to fix this. I am not using the submodule multiday but the main calendar module, and this is not working out for me.
How come this works in D6 but not D7 or was this always a problem?
Comment #14
Arkanen commentedsubscribe
Comment #15
big_ham commentedSpoke with someone who had this issue ... and it seems to me this issue could relate to views and not to calendar.
Can't say for sure, but the multi week events show up perfectly in month view ... week view shows the first week, but if you advance to the next week it disappears ... day view shows start day, but advancing, once more, makes the event disappear.
Might want to cross post in Views.
Comment #16
tim.plunkettCouldn't be a Views issue, it's likely the Calendar views integration.
#1182736: Multi-day events don't show up on week or day view of correct span.
Comment #17
Carlos Miranda Levy commentedSame issue here.
Event shows over its multiple days just fine in monthly and weekly calendars.
For day-calendar it only appears on the first day.
[subscribing]
Here's an example...
http://www.relief20.com/calendar/2011-06
Comment #18
pepe roni commentedThe problem seems to exist with any event that spans more than one displayed period, whether it is day view, week view or month view. Only that part of the event is displayed that resides in the current period. I helped myself by adding the to-date (OR-ed) to the contextual filters. Than an event that spans two consecutive periods is displayed in both periods. BUT: the event is displayed twice then, but at least it is displayed! But if the event spans three or more periods, it is not displayed in the middle periods :(
Comment #19
lecanardwc commentedHi guys!
I have the same problem. Today i tried to do some codes to make a date for each date between the "from" and the "to" date. My script work quite well, i can create each lines to insert in the database, but i don't know wich function i have to call to do the inserts...
Today i made it with PHPMyAdmin, line by line, in order to check if it works, and it works!
Now i have to put my little script in my module and call the insert function in order to finish it.
Can some help me? And where can i send my script to help the devs?
Comment #20
kpyan8s commentedsubscribe
Comment #21
r13ose commentedThe best bet to help the devs is to add your script in this thread that way others can see and improve on the code. If you need help beyond this thread, you can always try IRC which is good for this.
Comment #22
demelziraptor commentedsubscribe
Comment #23
lecanardwc commentedI found a way to display the events over several days. The thing is, it crashes anyway ...
I tested the "filter criteria" with the "content date" and the "current day", to display events I needed. Now, it displays well on different days, even when they are not programmed. That is, if someone happened to have something as stable with this technique, it would be cool!
For my code, in fact it crashed anyway, so I left ...
Comment #24
kscott22 commentedSimilar issue here.
On the month view, if an event stretches, for example, from June 29 - July 2, it will appear on all the June dates. But it won't appear on any of the July dates.
Comment #25
NotNotCow commentedHi All,
This is more of a thought, than a proper response, and please bear in mind that I'm pretty new to the Drupal community, but here goes anyway...
It seems, that there are quite a few of us who have the same issue, and in many cases the calendar functionality is integral to our potential projects in D7 (it's a brilliant module:)
I've been reading around some other module threads, and there are some ongoing discussions as to internal Drupal user funding as a model. As far as I understand it, there are a few modules, where, the community at large is so interested in that module, that users have offered some money to the maintainer so that they can allocate the time to provide bug fixes/updates.
I think this might be a nice way to show support for all the hard work that would obviously go into a module of this complexity, and be a way to 'give something back'. Personally, I'd love to spend the time to help out and try to fix these issues, but I simply don't have the skill set! (I'm gfx designer, not a developer:)
With this in mind, I wanted to ask you all in this thread, whether you would be prepared to 'donate' a small amount of cash (I haven't thought of an amount) with the 'fixes' in mind.
Please bear in mind, that I am in no way affiliated with KarenS, and indeed have not contacted her with this idea. I just thought I'd see what the general feeling is first. It may be that she completely disagrees with the idea, out of the box.
Also, it's worth noting, that there is discussion within the Drupal community as to whether this approach is actually against the Druapl ethos entirely. I think the fear would be, that we create a 'money based' update schedule for certain modules, rather than the 'get involved' spirit which is so refreshing in the community at present. Having said that, we all know, that there are modules which are funded by companies...so...I'm not sure how this would be any differnt...
Anywho, that's my 2 cents worth, if I'm missing a thread where this is already being discussed then let me know, and I'd be interested in thoughts feedback.
Ta!
NNC
Comment #26
agill commentedI would spent 50$ to make the calendar work on Drupal7.
i think i am not the only one who would...
However there should be a more official way of funding these large projects that
so many projects depend on.
On the page http://association.drupal.org/about/faq
They say:
I wonder if "Your contributions will directly support Drupal where help is needed most" involves giving money to large projects like the calendar module. ...It should in my opinion, but i would like to know for sure...
Just my 2 cents.
Comment #27
tim.plunkettThe offending code is here: http://drupalcode.org/project/date.git/blob/refs/heads/7.x-2.x:/date_vie...
Instead of checking to see if the date has started and not yet ended, in the case of "Day view" it just checks
DATE_FORMAT(field_value, '%Y-%m-%d') = '2011-06-26', which explains why this isn't working at all.Comment #28
mcaden commentedIt looks like you're meaning this at line 217?
Did you try changing it?
Comment #29
tim.plunkettI meant the entire date_views_argument_handler_simple::query(). And if you have an idea of what that can be changed to, go for it.
However, it will need both field_date_value and field_date_value2 to do a proper comparison, only one of which is present.
Comment #30
Jason Dean commentedsubscribing
Comment #31
rob.foddering commentedsubscribing
Comment #32
karens commentedTim is right about the cause, which indeed does need to be fixed in the Date module. There are numerous duplicate reports of this on the Date and Calendar issue queues. Some of the duplicate issues also allude to the right fix. I'm going to consolidate all of these reports into a single issue on Date and a single issue on Calendar so people will find them and quit adding new duplicate reports.
Comment #33
karens commentedI've committed a fix that involved several steps:
1) We don't always want to include the whole date range as the search value, there are times when someone will literally only want to discover matches for either the from date or the to date, so I had to add a setting to the argument where you could choose how this should behave. I defaulted it to check the whole date range since that's what we need for calendars and most of the time that is probably the desired behavior.
2) I added a switch in the code that either does the current kind of query, when the option is set to query for a specific value, or a new kind of query that basically has to find the intersection of the range of the date with the range of the view. This uses something similar to the code snippet in tim.plunkett's comment.
3) I had to then be sure that these changes would work right both with and without relationships.
4) I removed the formula functions, we don't need them any more. And I had to adjust the date pager to respond correctly to these changes.
I found one more issue when investigating relationships, and that is that the calendar row plugin needs some work to follow relationships correctly, but that is a separate issue.
This turned into an all day project, but I think I have it working right now so when we have a date that spans several months it will appear in view results for all the intervening months, not just the start and end. And all the other spans should work as well (a day view of dates that span multiple days, etc.). This may still need some tweaking so it needs to be tested. The changes are in the Date argument and the 7.3 calendar module. It may also fix problems in the 7.2 calendar module but I'm not worrying about that now. I would appreciate other people testing that this works correctly.
Comment #34
cossovich commentedIf I need to have a day view which is able to show spanning dates does this mean I should switch to the 7.3 branch of the calendar module?
Comment #36
yskel commentedThis fix (from today's 7.x-2.x-dev) seems to work perfectly for me (though I'm not using Calendar, just Date). The new options under contextual filters are really intuitive and generally awesome - thanks for the fix.
Comment #37
marcvangendSorry for adding to a closed issue, but this seems the best place to ask:
Is it correct that the change made in this issue only applies to filters and contextual filters, not to fields? I am looking for a way to group a view of events on the date field. To do that, an event would need a row in the views result for every day in the start-end range. Currently, I only see a way to group by start or end date.
Comment #38
tim.plunkettThis never got backported to D6, but for those curious, the commit to fix this was http://drupalcode.org/project/date.git/commitdiff/066e132
Comment #39
omaster commentedIs this going to be fixed for Drupal 6?