| Issue 2554: | Events retrieved through AJAX disappear on refresh if they have an end time, when default view is agendaWeek | |
| 1 person starred this issue and may be notified of changes. | Back to list |
You have a bug in utils.php, line 73 (version 2.3.2). The line currently reads: return $eventStart < $rangeEnd && $eventEnd > $rangeStart; and SHOULD read: return $eventStart <= $rangeEnd && $eventEnd >= $rangeStart; Occasionally $eventEnd and $rangeStart are identical. This causes an issue in the following circumstance: http://dev.virtualcreations.com.au/vc/fullcalendar/ which uses the following single event: [ { "title": "Birthday Party", "start": "2015-07-26T10:30:00-05:00", "end": "2015-07-26T12:30:00-05:00" } ] This event does NOT show where it's supposed to, but WILL show if you switch to Month view and back to agendaWeek view. To reproduce the bug: 1. Load the page above. No event is shown on July 26th. Note that it's set to default to "agendaWeek" 2. Click the "month" button. The event is present, on July 26th. 3. Click the "week" button. The event is now visible correctly. 4. Refresh the page - the event disappears (in "agendaWeek" view) (repeat the process) This only happens if... * The event is loaded via AJAX, using utils.php. If the event is defined in the HTML, it all works fine. * The event has an end time, and that end time is on the same date as the start time. If there's no end time, it all works fine. * The default view is "agendaWeek". If the default is "month", it all works fine. Thanks, Mark.
Aug 13, 2015
I tried that before I submitted the bug. I couldn't get it to happen - the JSFiddle environment doesn't really support the notion of "refreshing the page" (step 4, above).
Aug 20, 2015
Discussion for this issue has moved to the following URL: https://github.com/fullcalendar/fullcalendar/issues/2819 This is because Google Code is shutting down. Apologies if you are being pestered with these notifications. This is a one-time event. Happy coding, Adam
Status:
ExportedToGithub
|
|
| ► Sign in to add a comment |
Labels: Type-Bug