diff --git a/calendar/inc/class.calendar_merge.inc.php b/calendar/inc/class.calendar_merge.inc.php index d3576479a8..f01a141d7d 100644 --- a/calendar/inc/class.calendar_merge.inc.php +++ b/calendar/inc/class.calendar_merge.inc.php @@ -39,6 +39,7 @@ class calendar_merge extends bo_merge 'today', 'tomorrow', 'yesterday', + 'selected', ); /** @@ -337,6 +338,10 @@ class calendar_merge extends bo_merge $date = $this->bo->date2ts($date); if(is_array($id) && $id['start'] && ($date < $id['start'] || $date > $id['end'])) return array(); } + elseif ($plugin == 'selected') + { + $date = $id['start']; + } else { $date = strtotime($plugin);