From d391c01c420a8f1d99ae989b478614389016f363 Mon Sep 17 00:00:00 2001 From: Christian Binder Date: Sat, 10 Feb 2007 18:49:55 +0000 Subject: [PATCH] fix for bug #351 "Mail notification contains invalid link (to non-existant view)" and additionally added "date" to the link to pick the correct state for particpants in recurring events --- calendar/inc/class.bocalupdate.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.bocalupdate.inc.php b/calendar/inc/class.bocalupdate.inc.php index 96932bcf1c..50fb4fa187 100644 --- a/calendar/inc/class.bocalupdate.inc.php +++ b/calendar/inc/class.bocalupdate.inc.php @@ -841,7 +841,8 @@ class bocalupdate extends bocal $details['participants'] = $details['participants'] ? implode("\n",$details['participants']) : ''; $event_arr['link']['field'] = lang('URL'); - $link = $GLOBALS['egw_info']['server']['webserver_url'].'/index.php?menuaction=calendar.uiforms.view&cal_id='.$event['id'].'&no_popup=1'; + $eventStart_arr = $this->date2array($event['start']); // give this as 'date' to the link to pick the right recurrence for the participants state + $link = $GLOBALS['egw_info']['server']['webserver_url'].'/index.php?menuaction=calendar.uiforms.edit&cal_id='.$event['id'].'&date='.$eventStart_arr['full'].'&no_popup=1'; // if url is only a path, try guessing the rest ;-) if ($link{0} == '/') {