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

This commit is contained in:
Christian Binder 2007-02-10 18:49:55 +00:00
parent 15280f17a0
commit d391c01c42

View File

@ -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} == '/')
{