mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Add support for adding calendar & other apps from URL in a popup
This commit is contained in:
parent
e4bb6099eb
commit
5cbb53c00f
@ -304,6 +304,20 @@ class timesheet_ui extends timesheet_bo
|
||||
// a preserved title blur is only set for other (non-project) links, it stays with Save&New!
|
||||
$preserv['ts_title_blur'] = egw_link::title('infolog',$link_id);
|
||||
break;
|
||||
case 'calendar':
|
||||
$calendar_bo = new calendar_bo();
|
||||
$event = $calendar_bo->read($link_id);
|
||||
if(!$event['recur_type'])
|
||||
{
|
||||
$content['ts_start'] = $event['start'];
|
||||
}
|
||||
$content['ts_description'] = $event['description'];
|
||||
$content['ts_duration'] = ($event['end'] - $event['start']) / 60;
|
||||
$content['ts_quantity'] = ($event['end'] - $event['start']) / 3600;
|
||||
unset($content['end_time']);
|
||||
default:
|
||||
$preserv['ts_title_blur'] = egw_link::title($link_app,$link_id);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user