Closed (won't fix)
Project:
Event
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Jun 2006 at 19:28 UTC
Updated:
31 Jan 2013 at 12:47 UTC
Is there a bug with the event module that prevents it from displaying the event on the day of the event? My events disappear on event day. That's a bad thing. Or does anyone have a fix for this?
Thanks.
Comments
Comment #1
hadsie commentedI had to modify a query in events.module to get around this
Line 1737, from:
$result = db_query(db_rewrite_sql('SELECT n.nid, n.title, n.type, n.status, n.moderate, n.changed, e.event_start FROM {node} n INNER JOIN {event} e ON n.nid = e.nid WHERE n.status = 1 AND n.moderate = 0 AND e.event_start >= %d ORDER BY event_start'), $time);
To:
$result = db_query(db_rewrite_sql('SELECT n.nid, n.title, n.type, n.status, n.moderate, n.changed, e.event_start FROM {node} n INNER JOIN {event} e ON n.nid = e.nid WHERE n.status = 1 AND n.moderate = 0 AND e.event_end >= %d ORDER BY event_start'), $time);
Basically just changed event_start to event_end... there may be small glitches with this that I haven't considered, but it seems to work fine for me so far.
Comment #2
simon georges commentedThis version of Event is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.