From 49471c5e2bb75141e6f6eccd22ac0982c516c7cc Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Fri, 3 Sep 2010 18:04:48 +0000 Subject: [PATCH] Change link title so it can give the date for a particular recurrence, if the passed id is in the form CAL_ID-RECUR_DATE --- calendar/inc/class.calendar_bo.inc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_bo.inc.php b/calendar/inc/class.calendar_bo.inc.php index 87352ec3d7..bfbef52afe 100644 --- a/calendar/inc/class.calendar_bo.inc.php +++ b/calendar/inc/class.calendar_bo.inc.php @@ -1666,7 +1666,12 @@ class calendar_bo */ function link_title($event) { - if (!is_array($event) && (int) $event > 0) + if (!is_array($event) && strpos($event, '-') !== false) + { + list($id, $recur) = explode('-', $event, 2); + $event = $this->read($id, $recur); + } + else if (!is_array($event) && (int) $event > 0) { $event = $this->read($event); }