mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
enable URL pointing to the event in the notification message
This commit is contained in:
parent
76c85cb5db
commit
995cc939e9
@ -798,9 +798,9 @@ class bocalupdate extends bocal
|
||||
$details[$key] = $val['data'];
|
||||
}
|
||||
$details['participants'] = $details['participants'] ? implode("\n",$details['participants']) : '';
|
||||
$details['groups'] = $details['groups'] ? implode("\n",$details['groups']) : '';
|
||||
|
||||
$details['link'] = $GLOBALS['egw_info']['server']['webserver_url'].'/index.php?menuaction=calendar.uiforms.view&cal_id='.$event['id'];
|
||||
$event_arr['link']['field'] = lang('URL');
|
||||
$event_arr['link']['data'] = $details['link'] = $GLOBALS['egw_info']['server']['webserver_url'].'/index.php?menuaction=calendar.uiforms.view&cal_id='.$event['id'].'&no_popup=1';
|
||||
// if url is only a path, try guessing the rest ;-)
|
||||
if ($GLOBALS['egw_info']['server']['webserver_url'][0] == '/')
|
||||
{
|
||||
@ -893,23 +893,6 @@ class bocalupdate extends bocal
|
||||
'data' => $event['public'] ? lang('Public') : lang('Private')
|
||||
);
|
||||
|
||||
if(is_array($event['groups']))
|
||||
{
|
||||
$cal_grps = '';
|
||||
foreach($event['groups'] as $group)
|
||||
{
|
||||
if(($name = $GLOBALS['egw']->accounts->id2name($group)))
|
||||
{
|
||||
$cal_grps[] = $name;
|
||||
}
|
||||
}
|
||||
|
||||
$var['groups'] = Array(
|
||||
'field' => lang('Groups'),
|
||||
'data' => $cal_grps,
|
||||
);
|
||||
}
|
||||
|
||||
if (isset($event['participants']) && is_array($event['participants']))
|
||||
{
|
||||
$participants = $this->participants($event,true);
|
||||
|
Loading…
Reference in New Issue
Block a user