Upcoming recurring events (month)
Submitted Jason H, Apr 30 2012 11:13 AM | Last updated Apr 30 2012 11:13 AM
If you have an event set to recur yearly, on May 1st.. The event won't show in the upcoming events hook until the 1st of May, and then will only show for that one day. Happens at any month rollover.. While the 'calendar_limit' is respected, when you straddle a month, it becomes a problem.
I kicked this around a bit.. And, it seems like it'll probably be a little difficult to make this happen, because, in public function calendarGetEventsSQL( $month=0, $year=0, $presets=array() )
We pull the events.. Then, further down, we match based on
Well, Something that happens May 1st, is event_recurring = 3, which matches the second half, but, Since today is still April.. It's never going to match the first half.
And, you can't do a $_month +1, because of December.
I kicked this around a bit.. And, it seems like it'll probably be a little difficult to make this happen, because, in public function calendarGetEventsSQL( $month=0, $year=0, $presets=array() )
We pull the events.. Then, further down, we match based on
if( $_month == $month AND ( $_year == $year OR $r['event_recurring'] == 3 ) )
Well, Something that happens May 1st, is event_recurring = 3, which matches the second half, but, Since today is still April.. It's never going to match the first half.
And, you can't do a $_month +1, because of December.
| Status: | Fixed |
| Version: | 3.3.0 |
| Fixed In: | 3.3.1 |











0 Comments